@@ -17,13 +17,13 @@ module.exports = {
1717 clearMocks : true ,
1818
1919 // Indicates whether the coverage information should be collected while executing the test
20- collectCoverage : true ,
20+ collectCoverage : false ,
2121
2222 // An array of glob patterns indicating a set of files for which coverage information should be collected
2323 // collectCoverageFrom: undefined,
2424
2525 // The directory where Jest should output its coverage files
26- coverageDirectory : 'coverage' ,
26+ // coverageDirectory: 'coverage',
2727
2828 // An array of regexp pattern strings used to skip coverage collection
2929 // coveragePathIgnorePatterns: [
@@ -76,7 +76,7 @@ module.exports = {
7676 // ],
7777
7878 // An array of file extensions your modules use
79- moduleFileExtensions : [ 'js' , 'mjs' , 'cjs' , 'jsx' , 'ts' , 'tsx' , 'json' , 'node '] ,
79+ moduleFileExtensions : [ 'js' , 'mjs' , 'ts ' ] ,
8080
8181 // A map from regular expressions to module names or to arrays of module names that allow to stub out resources with a single module
8282 moduleNameMapper : {
@@ -166,10 +166,11 @@ module.exports = {
166166 // A map from regular expressions to paths to transformers
167167 transform : {
168168 '\\.[jt]sx?$' : [ '@swc/jest' ] ,
169+ '\\.mjs$' : [ '@swc/jest' ] ,
169170 } ,
170171
171172 // An array of regexp pattern strings that are matched against all source file paths, matched files will skip transformation
172- extensionsToTreatAsEsm : [ '.ts' , '.tsx' ] ,
173+ extensionsToTreatAsEsm : [ '.ts' ] ,
173174 // An array of regexp pattern strings that are matched against all modules before the module loader will automatically return a mock for them
174175 // unmockedModulePathPatterns: undefined,
175176
@@ -181,4 +182,6 @@ module.exports = {
181182
182183 // Whether to use watchman for file crawling
183184 // watchman: true
185+
186+ transformIgnorePatterns : [ 'dist/' , '<rootDir>/node_modules/.pnpm/(?!(antlr4ng|antlr4-c3)@)' ] ,
184187} ;
0 commit comments