-
Notifications
You must be signed in to change notification settings - Fork 723
/
vitest.shared.ts
24 lines (23 loc) · 980 Bytes
/
vitest.shared.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { defineConfig } from "vitest/config";
// This default gets pulled in by all the Vitest runs in the monorepo.
export default defineConfig({
test: {
// These timeouts are very large because the Windows CI jobs regularly take up ot 42 secs.
// Ideally we should not have such high defaults across all tests, but instead be able to
// increase timeouts for certain sets of tests.
// But this might need some vitest/turborepo magical incantations and bumping the values
// here is a simpler short term fix.
// Note that this will not cause tests to pass that should fail. It just means that hanging
// tests will take longer to fail than they would before.
testTimeout: 50_000,
hookTimeout: 50_000,
teardownTimeout: 50_000,
poolOptions: {
useAtomics: true,
},
restoreMocks: true,
// A lot of the fixture tests are extremely flaky because of the dev registry
// Retry tests by default so that only real errors are reported
retry: 2,
},
});