Browse Source

ci(jest): increase timeouts

Tests sometimes run very slowly on Appveyor and can timeout before they
finish. Increase jest and spectron timeouts from their defaults.
renovate/lint-staged-8.x
Tom Kirkpatrick 6 years ago
parent
commit
369be780a9
  1. 7
      test/e2e/e2e.spec.js

7
test/e2e/e2e.spec.js

@ -2,14 +2,17 @@ import { Application } from 'spectron'
import electronPath from 'electron'
import path from 'path'
jest.setTimeout(10000)
jest.setTimeout(25000)
jest.unmock('electron')
describe('main window', function spec() {
beforeAll(async () => {
this.app = new Application({
path: electronPath,
args: [path.join(__dirname, '..', '..', 'app')]
args: [path.join(__dirname, '..', '..', 'app')],
waitTimeout: 10000,
startTimeout: 10000,
quitTimeout: 2000
})
await this.app.start()

Loading…
Cancel
Save