From 369be780a9bc5eb46d10840029cc8346140e04d5 Mon Sep 17 00:00:00 2001 From: Tom Kirkpatrick Date: Wed, 3 Oct 2018 08:29:52 +0200 Subject: [PATCH] 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. --- test/e2e/e2e.spec.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/e2e/e2e.spec.js b/test/e2e/e2e.spec.js index 6cc2ed3b..7cec8bea 100644 --- a/test/e2e/e2e.spec.js +++ b/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()