Skip to content

Commit d9e769c

Browse files
authored
build: remove test hook timeout override (#7200)
We [bumped this up globally here](#7154) but it didn't take everywhere because of this override. This should help with flakiness, especially since integration tests that use fixtures can be quite slow on Windows.
1 parent 33b60ba commit d9e769c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/integration/utils/fixture.ts

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import { MockApi, Route, getCLIOptions, startMockApi } from './mock-api-vitest.j
1212
import { SiteBuilder } from './site-builder.js'
1313

1414
const FIXTURES_DIRECTORY = fileURLToPath(new URL('../__fixtures__/', import.meta.url))
15-
const HOOK_TIMEOUT = 30_000
1615

1716
interface MockApiOptions {
1817
routes: Route[]
@@ -175,7 +174,7 @@ export async function setupFixtureTests(
175174

176175
await options.setupAfterDev?.({ fixture, mockApi, devServer })
177176
}
178-
}, HOOK_TIMEOUT)
177+
})
179178

180179
beforeEach<FixtureTestContext>((context) => {
181180
if (fixture) context.fixture = fixture
@@ -200,6 +199,6 @@ export async function setupFixtureTests(
200199
if (devServer) await devServer.close()
201200
if (mockApi) await mockApi.close()
202201
if (fixture) await fixture.cleanup()
203-
}, HOOK_TIMEOUT)
202+
})
204203
})
205204
}

0 commit comments

Comments
 (0)