Skip to content

Commit

Permalink
fixup! test: try using maxworkers for v9 to improve jest execution sp…
Browse files Browse the repository at this point in the history
…eeds on CI
  • Loading branch information
Hotell committed Apr 27, 2023
1 parent b9e6e23 commit 660ee7d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions jest.preset.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ const { pathsToModuleNameMapper } = require('ts-jest');

const tsConfig = require('./tsconfig.base.json');

const isCI = Boolean(process.env.TF_BUILD);

const tsPathAliases = pathsToModuleNameMapper(tsConfig.compilerOptions.paths, {
prefix: `<rootDir>/${path.relative(process.cwd(), __dirname)}/`,
});
Expand All @@ -26,7 +24,6 @@ const baseConfig = {
cacheDirectory: '<rootDir>/node_modules/.cache/jest',
clearMocks: true,
watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'],
...(isCI ? { maxWorkers: 4 } : null),
};

module.exports = { ...baseConfig };

0 comments on commit 660ee7d

Please sign in to comment.