This repository was archived by the owner on Apr 6, 2023. It is now read-only.
File tree 3 files changed +3
-3
lines changed 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export function createTestContext (options: Partial<TestOptions>): TestContext {
9
9
testDir : resolve ( process . cwd ( ) , 'test' ) ,
10
10
fixture : 'fixture' ,
11
11
configFile : 'nuxt.config' ,
12
- setupTimeout : 60000 ,
12
+ setupTimeout : 120 * 1000 ,
13
13
dev : ! ! JSON . parse ( process . env . NUXT_TEST_DEV || 'false' ) ,
14
14
logLevel : 1 ,
15
15
server : true ,
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ export default async function setupJest (hooks: TestHooks) {
8
8
9
9
// TODO: add globals existing check to provide better error message
10
10
// @ts -expect-error jest types
11
- test ( 'setup' , hooks . setup , 120 * 1000 )
11
+ test ( 'setup' , hooks . setup , hooks . ctx . options . setupTimeout )
12
12
// @ts -expect-error jest types
13
13
beforeEach ( hooks . beforeEach )
14
14
// @ts -expect-error jest types
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ export default async function setupVitest (hooks: TestHooks) {
5
5
6
6
hooks . ctx . mockFn = vitest . vi . fn
7
7
8
- vitest . beforeAll ( hooks . setup , 120 * 1000 )
8
+ vitest . beforeAll ( hooks . setup , hooks . ctx . options . setupTimeout )
9
9
vitest . beforeEach ( hooks . beforeEach )
10
10
vitest . afterEach ( hooks . afterEach )
11
11
vitest . afterAll ( hooks . afterAll )
You can’t perform that action at this time.
0 commit comments