forked from seriouslag/actual-auto-sync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.e2e.mts
More file actions
25 lines (24 loc) · 856 Bytes
/
vitest.config.e2e.mts
File metadata and controls
25 lines (24 loc) · 856 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
import { defineConfig } from 'vitest/config';
export default defineConfig({
cacheDir: './node_modules/.cache/vitest-e2e',
test: {
globals: true,
environment: 'node',
include: ['src/__tests__/e2e/**/*.e2e.test.ts'],
// Setup file to intercept unhandled rejections from @actual-app/api
setupFiles: ['./src/__tests__/e2e/vitest-setup.ts'],
// E2E tests need longer timeouts for server operations
testTimeout: 60_000,
hookTimeout: 60_000,
// Run tests sequentially to avoid race conditions with shared server and data directory
sequence: {
concurrent: false,
},
// Run test files one at a time (not in parallel)
fileParallelism: false,
// Run each test file in isolation to avoid shared state issues
isolate: true,
// No retry - we want consistent test behavior
retry: 0,
},
});