diff --git a/jest.config.js b/jest.config.js index 006498bae69..d8ae0d783b4 100644 --- a/jest.config.js +++ b/jest.config.js @@ -13,4 +13,8 @@ module.exports = { testTimeout: 4 * 60 * 1000, // 4 minutes setupFilesAfterEnv: [path.join(__dirname, "jest.setup.js")], cacheDirectory: path.join(__dirname, ".jest-cache", packageName), + // Many tests change the dist tags of packages. + // Unfortunately, this means that if two such tests will run at the same time, + // they may break each other. + maxWorkers: 1, }; diff --git a/packages/plugin-commands-installation/jest.config.js b/packages/plugin-commands-installation/jest.config.js index 739e8317bd5..f697d831691 100644 --- a/packages/plugin-commands-installation/jest.config.js +++ b/packages/plugin-commands-installation/jest.config.js @@ -1,7 +1 @@ -module.exports = { - ...require('../../jest.config.js'), - // This is a temporary workaround. - // Currently, multiple tests use the @pnpm.e2e/foo package and they change it's dist-tags. - // These tests are in separate files, so sometimes they will simultaneously set the dist tag and fail because they expect different versions to be tagged. - maxWorkers: 1, -} +module.exports = require('../../jest.config.js')