Browse Source

chore: Limit Jest workers in CI

Trying to resolve failing e2e tests with sql.js
Michael Bromley 4 years ago
parent
commit
204f69983a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      e2e-common/jest-config.js

+ 1 - 1
e2e-common/jest-config.js

@@ -12,7 +12,7 @@ module.exports = {
     moduleFileExtensions: ['js', 'json', 'ts'],
     rootDir: packageDirname,
     testRegex: '.e2e-spec.ts$',
-    maxWorkers: 3,
+    maxWorkers: process.env.CI ? 1 : 3,
     transform: {
         '^.+\\.ts$': 'ts-jest',
     },