-
Notifications
You must be signed in to change notification settings - Fork 282
Expand file tree
/
Copy pathvitest.config.ts
More file actions
40 lines (39 loc) · 1.27 KB
/
Copy pathvitest.config.ts
File metadata and controls
40 lines (39 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// eslint-disable-next-line import/extensions
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
projects: [
{
extends: true,
test: {
name: 'unit',
include: ['tests/unit/**/*.test.ts'],
testTimeout: 30_000,
},
},
{
extends: true,
test: {
name: 'integration',
include: ['tests/integration/**/*.test.ts'],
testTimeout: 120_000,
},
},
{
// TEMPORARY, AI-GENERATED, NOT HUMAN-MAINTAINED. Remove with tests/e2e/ when the
// stateless migration (#1128) closes.
// Opt-in only (`pnpm run test:e2e`); never add this project to CI.
extends: true,
test: {
name: 'e2e',
include: ['tests/e2e/**/*.test.ts'],
testTimeout: 300_000,
hookTimeout: 60_000,
maxConcurrency: Number(process.env.E2E_WORKERS ?? 6),
},
},
],
},
});