diff options
Diffstat (limited to 'config/jest.config.base.js')
-rw-r--r-- | config/jest.config.base.js | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/config/jest.config.base.js b/config/jest.config.base.js index 463e498..21f93be 100644 --- a/config/jest.config.base.js +++ b/config/jest.config.base.js | |||
@@ -9,22 +9,22 @@ export default { | |||
9 | transform: { | 9 | transform: { |
10 | '\\.tsx?$': join(thisDir, 'jestEsbuildTransformer.js'), | 10 | '\\.tsx?$': join(thisDir, 'jestEsbuildTransformer.js'), |
11 | }, | 11 | }, |
12 | extensionsToTreatAsEsm: [ | 12 | extensionsToTreatAsEsm: ['.ts', '.tsx'], |
13 | '.ts', | ||
14 | '.tsx', | ||
15 | ], | ||
16 | moduleNameMapper: { | 13 | moduleNameMapper: { |
17 | '^@sophie/(.+)$': join(thisDir, '../packages/$1/src/index.ts'), | 14 | '^@sophie/(.+)$': join(thisDir, '../packages/$1/src/index.ts'), |
18 | '^(\\.{1,2}/.*)\\.jsx?$': '$1', | 15 | '^(\\.{1,2}/.*)\\.jsx?$': '$1', |
19 | // Workaround for jest to recognize the vendored dependencies of chalk. | 16 | // Workaround for jest to recognize the vendored dependencies of chalk. |
20 | '^#ansi-styles$': join(thisDir, '../node_modules/chalk/source/vendor/ansi-styles/index.js'), | 17 | '^#ansi-styles$': join( |
21 | '^#supports-color$': join(thisDir, '../node_modules/chalk/source/vendor/supports-color/index.js'), | 18 | thisDir, |
19 | '../node_modules/chalk/source/vendor/ansi-styles/index.js', | ||
20 | ), | ||
21 | '^#supports-color$': join( | ||
22 | thisDir, | ||
23 | '../node_modules/chalk/source/vendor/supports-color/index.js', | ||
24 | ), | ||
22 | }, | 25 | }, |
23 | resetMocks: true, | 26 | resetMocks: true, |
24 | restoreMocks: true, | 27 | restoreMocks: true, |
25 | testEnvironment: 'node', | 28 | testEnvironment: 'node', |
26 | testPathIgnorePatterns: [ | 29 | testPathIgnorePatterns: ['/dist/', '/node_modules/'], |
27 | '/dist/', | ||
28 | '/node_modules/', | ||
29 | ], | ||
30 | }; | 30 | }; |