From 660ee7dcbca2bf2c443b94fc66b0a3c6d99c0b00 Mon Sep 17 00:00:00 2001 From: Martin Hochel Date: Thu, 27 Apr 2023 15:25:13 +0200 Subject: [PATCH] fixup! test: try using maxworkers for v9 to improve jest execution speeds on CI --- jest.preset.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/jest.preset.js b/jest.preset.js index 0af58dcd6691b5..acdbe4fd5e5a99 100644 --- a/jest.preset.js +++ b/jest.preset.js @@ -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: `/${path.relative(process.cwd(), __dirname)}/`, }); @@ -26,7 +24,6 @@ const baseConfig = { cacheDirectory: '/node_modules/.cache/jest', clearMocks: true, watchPlugins: ['jest-watch-typeahead/filename', 'jest-watch-typeahead/testname'], - ...(isCI ? { maxWorkers: 4 } : null), }; module.exports = { ...baseConfig };