/** * For a detailed explanation regarding each configuration property, visit: * https://jestjs.io/docs/configuration */ import type { Config } from 'jest'; const config: Config = { // Automatically clear mock calls, instances, contexts and results before every test clearMocks: true, // Indicates whether the coverage information should be collected while executing the test collectCoverage: false, // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module moduleNameMapper: { "^@/(.*)$": "/src/$1" }, // The test environment that will be used for testing testEnvironment: "node", // The glob patterns Jest uses to detect test files testMatch: [ "**/__tests__/**/*.[jt]s?(x)", "!**/__tests__/*_gen.[jt]s?(x)" ], // A map from regular expressions to paths to transformers transform: { '^.+\\.m?tsx?$': ['ts-jest', { useESM: true, isolatedModules: true }], }, }; module.exports = config;