forked from RunMaestro/Maestro
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.integration.config.ts
More file actions
42 lines (40 loc) · 1.27 KB
/
vitest.integration.config.ts
File metadata and controls
42 lines (40 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
41
42
/**
* @file vitest.integration.config.ts
* @description Vitest configuration for integration tests.
*
* Integration tests require real agents and exercise the full flow.
* These tests are meant to be run manually or in dedicated CI jobs.
*
* Run with: npm run test:integration
*/
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import path from 'path';
export default defineConfig({
plugins: [react()],
test: {
include: [
'src/__tests__/integration/**/*.integration.test.ts',
'src/__tests__/integration/**/provider-integration.test.ts',
'src/__tests__/integration/**/*.test.tsx', // Include React component integration tests
],
environment: 'jsdom', // Required for React component tests
setupFiles: ['./src/__tests__/setup.ts'],
testTimeout: 180000, // 3 minutes per test
hookTimeout: 60000, // 1 minute for setup/teardown
pool: 'forks', // Use forks instead of threads for process isolation
poolOptions: {
forks: {
singleFork: true, // Run tests sequentially to avoid agent conflicts
},
},
bail: 1, // Stop on first failure
globals: true,
reporters: ['verbose'],
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});