From d85f09cbed5f3d2501f791e689011ae127df1cbb Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 9 Jan 2022 20:33:53 +0100 Subject: build: Add prettier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit eslint will also enforce prettier rules, so there is no need to call prettier separately in CI. Signed-off-by: Kristóf Marussy --- config/jest.config.base.js | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'config/jest.config.base.js') 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 { transform: { '\\.tsx?$': join(thisDir, 'jestEsbuildTransformer.js'), }, - extensionsToTreatAsEsm: [ - '.ts', - '.tsx', - ], + extensionsToTreatAsEsm: ['.ts', '.tsx'], moduleNameMapper: { '^@sophie/(.+)$': join(thisDir, '../packages/$1/src/index.ts'), '^(\\.{1,2}/.*)\\.jsx?$': '$1', // Workaround for jest to recognize the vendored dependencies of chalk. - '^#ansi-styles$': join(thisDir, '../node_modules/chalk/source/vendor/ansi-styles/index.js'), - '^#supports-color$': join(thisDir, '../node_modules/chalk/source/vendor/supports-color/index.js'), + '^#ansi-styles$': join( + thisDir, + '../node_modules/chalk/source/vendor/ansi-styles/index.js', + ), + '^#supports-color$': join( + thisDir, + '../node_modules/chalk/source/vendor/supports-color/index.js', + ), }, resetMocks: true, restoreMocks: true, testEnvironment: 'node', - testPathIgnorePatterns: [ - '/dist/', - '/node_modules/', - ], + testPathIgnorePatterns: ['/dist/', '/node_modules/'], }; -- cgit v1.2.3-54-g00ecf