forked from czlonkowski/n8n-mcp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.integration.ts
More file actions
29 lines (28 loc) · 886 Bytes
/
vitest.config.integration.ts
File metadata and controls
29 lines (28 loc) · 886 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
import { defineConfig, mergeConfig } from 'vitest/config';
import baseConfig from './vitest.config';
export default mergeConfig(
baseConfig,
defineConfig({
test: {
// Include global setup, but NOT integration-setup.ts for n8n-api tests
// (they need real network requests, not MSW mocks)
setupFiles: ['./tests/setup/global-setup.ts'],
// Only include integration tests
include: ['tests/integration/**/*.test.ts'],
// Integration tests might need more time
testTimeout: 30000,
// Specific pool options for integration tests
poolOptions: {
threads: {
// Run integration tests sequentially by default
singleThread: true,
maxThreads: 1
}
},
// Disable coverage for integration tests or set lower thresholds
coverage: {
enabled: false
}
}
})
);