-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.integration.config.mts
More file actions
31 lines (30 loc) · 991 Bytes
/
vitest.integration.config.mts
File metadata and controls
31 lines (30 loc) · 991 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
import { nxViteTsPaths } from '@nx/vite/plugins/nx-tsconfig-paths.plugin';
import { defineConfig } from 'vitest/config';
export default defineConfig({
root: __dirname,
cacheDir: '../../node_modules/.vite/packages/fly-node-integration',
plugins: [nxViteTsPaths()],
test: {
name: 'packages-fly-node-integration',
globals: true,
watch: false,
environment: 'node',
include: ['integration-tests/**/*.integration.test.ts'],
coverage: {
reportsDirectory: '../../coverage/packages/fly-node/integration-tests',
provider: 'v8'
},
setupFiles: ['integration-tests/setup.ts'],
passWithNoTests: false,
// Longer timeout for real API calls and deployments
testTimeout: 300000, // 5 minutes
hookTimeout: 120000, // 2 minutes for deploy/destroy during setup/teardown
// Run tests serially to avoid rate limiting and resource conflicts
pool: 'forks',
poolOptions: {
forks: {
singleFork: true
}
}
}
});