Skip to content

Commit

Permalink
fix(e2e): increase default windows setup timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 12, 2025
1 parent 7df895e commit 6f38dd5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { resolve } from 'node:path'
import { defu } from 'defu'
import { withTrailingSlash } from 'ufo'
import type { DateString } from 'compatx'
import { isWindows } from 'std-env'
import type { TestContext, TestOptions } from './types'

let currentContext: TestContext | undefined
Expand All @@ -11,7 +12,7 @@ export function createTestContext(options: Partial<TestOptions>): TestContext {
testDir: resolve(process.cwd(), 'test'),
fixture: 'fixture',
configFile: 'nuxt.config',
setupTimeout: 120 * 1000,
setupTimeout: isWindows ? 240_000 : 120_000,
dev: !!JSON.parse(process.env.NUXT_TEST_DEV || 'false'),
logLevel: 1,
server: true,
Expand Down

0 comments on commit 6f38dd5

Please sign in to comment.