Browse Source

Merge pull request #827 from mrfelton/ci/jest-maxworkers

ci(jest): set maxWorkers to 2
renovate/lint-staged-8.x
Tom Kirkpatrick 6 years ago
committed by GitHub
parent
commit
be47c0d32d
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      package.json
  2. 4
      test/e2e/e2e.spec.js

2
package.json

@ -35,7 +35,7 @@
"start-main-dev": "cross-env HOT=1 NODE_ENV=development electron -r babel-register ./app/main.dev",
"start-renderer-dev": "node --trace-warnings -r babel-register ./node_modules/webpack-serve/lib/cli.js --config internals/webpack/webpack.config.renderer.dev.js",
"test": "npm run lint && npm run lint-styles && npm run flow && npm run build && npm run test-unit && npm run test-e2e",
"test-base": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=true ELECTRON_DISABLE_SECURITY_WARNINGS=true node --trace-warnings ./node_modules/jest/bin/jest --forceExit",
"test-base": "cross-env NODE_ENV=test BABEL_DISABLE_CACHE=true ELECTRON_DISABLE_SECURITY_WARNINGS=true node --trace-warnings ./node_modules/jest/bin/jest --maxWorkers=2",
"test-unit": "npm run test-base -- --coverage ./test/unit",
"test-e2e": "npm run test-base -- ./test/e2e",
"test-ci": "npm run test-e2e && npm run test-unit"

4
test/e2e/e2e.spec.js

@ -16,9 +16,9 @@ describe('main window', function spec() {
await this.app.client.waitUntilWindowLoaded()
})
afterAll(() => {
afterAll(async () => {
if (this.app && this.app.isRunning()) {
return this.app.stop()
await this.app.stop()
}
})

Loading…
Cancel
Save