forked from cloudflare/sandbox-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.e2e.config.ts
More file actions
35 lines (30 loc) · 858 Bytes
/
Copy pathvitest.e2e.config.ts
File metadata and controls
35 lines (30 loc) · 858 Bytes
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
import { config } from 'dotenv';
import { defineConfig } from 'vitest/config';
config();
/**
* E2E tests with per-file sandbox isolation - runs in parallel.
* Each test file creates its own sandbox via createTestSandbox().
* Bucket-mounting tests self-skip locally (require FUSE/CI).
*/
export default defineConfig({
test: {
name: 'e2e',
globals: true,
environment: 'node',
include: ['tests/e2e/**/*.test.ts'],
testTimeout: 120000,
hookTimeout: 60000,
teardownTimeout: 30000,
// Global setup resolves worker URL, passes it through a tmp file
globalSetup: ['tests/e2e/global-setup.ts'],
// Threads run in parallel - each file creates its own sandbox
pool: 'threads',
poolOptions: {
threads: {
singleThread: false,
isolate: false
}
},
fileParallelism: true
}
});