diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 20:33:53 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 20:33:53 +0100 |
commit | d85f09cbed5f3d2501f791e689011ae127df1cbb (patch) | |
tree | 0ed5be55dd5d3dec1d51eb60e7ff229274030a57 /config/jest.config.base.js | |
parent | build: Disable single-run eslint-typescript (diff) | |
download | sophie-d85f09cbed5f3d2501f791e689011ae127df1cbb.tar.gz sophie-d85f09cbed5f3d2501f791e689011ae127df1cbb.tar.zst sophie-d85f09cbed5f3d2501f791e689011ae127df1cbb.zip |
build: Add prettier
eslint will also enforce prettier rules, so there is no need to call
prettier separately in CI.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
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 | }; |