Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

chore(jest): halve the max workers (#3017)

Joel Einbindera75835e077cb
diff --git a/jest.config.js b/jest.config.js
new file mode 100644
index 0000000000..3b24295788
--- /dev/null
+++ b/jest.config.js
@@ -0,0 +1,11 @@
+module.exports = /** @type {import('@jest/types').Config.InitialOptions} */ ({
+ // all of our tests have a browser and a node process, so the default max workers is too many.
+ maxWorkers: Math.ceil(require('os').cpus().length / 2),
+ rootDir: './test',
+ testEnvironment: './jest',
+ testMatch: ['**/?(*.)jest.[jt]s'],
+ testRunner: 'jest-circus/runner',
+ testTimeout: 10000,
+ globalSetup: './jest/setup.js',
+ globalTeardown: './jest/teardown.js'
+});
diff --git a/jest.config.json b/jest.config.json
deleted file mode 100644
index 355f4c1649..0000000000
--- a/jest.config.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "rootDir": "./test",
- "testEnvironment": "./jest",
- "testMatch": ["**/?(*.)jest.[jt]s"],
- "testRunner": "jest-circus/runner",
- "testTimeout": 10000,
- "globalSetup": "./jest/setup.js",
- "globalTeardown": "./jest/teardown.js"
-}