Skip to content

Commit

Permalink
test: set maxWorkers to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
zkochan committed Oct 2, 2022
1 parent d665f3f commit d30f3ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
4 changes: 4 additions & 0 deletions jest.config.js
Expand Up @@ -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,
};
8 changes: 1 addition & 7 deletions 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')

0 comments on commit d30f3ac

Please sign in to comment.