From 659755fdecb4a57dddbb9e3385f7586ec0e139bc Mon Sep 17 00:00:00 2001 From: JJ Kasper Date: Mon, 28 Mar 2022 15:05:00 -0500 Subject: [PATCH] Update default test timeouts for yarn install times --- test/lib/e2e-utils.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/lib/e2e-utils.ts b/test/lib/e2e-utils.ts index fa9474f5ca35..3f25fa2793d9 100644 --- a/test/lib/e2e-utils.ts +++ b/test/lib/e2e-utils.ts @@ -5,6 +5,9 @@ import { InstallCommand, NextInstance, PackageJson } from './next-modes/base' import { NextDevInstance } from './next-modes/next-dev' import { NextStartInstance } from './next-modes/next-start' +// increase timeout to account for yarn install time +jest.setTimeout((process.platform === 'win32' ? 240 : 180) * 1000) + const testsFolder = path.join(__dirname, '..') let testFile