-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathjest.e2e.config.ts
More file actions
29 lines (27 loc) · 878 Bytes
/
jest.e2e.config.ts
File metadata and controls
29 lines (27 loc) · 878 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 type { Config } from 'jest';
import baseConfig from './jest.config.js';
/**
* E2E test configuration - runs in band to avoid isolated-vm + Jest worker issues
*/
const config: Config = {
...baseConfig,
testMatch: ['**/__tests__/e2e/**/*.test.ts'],
// Run tests serially to avoid isolated-vm crashes in Jest workers
maxWorkers: 1,
// Increase timeout for E2E tests
testTimeout: 120000,
// Disable worker threads
workerThreads: false,
// Disable code coverage for E2E tests
collectCoverage: false,
// Better error handling
errorOnDeprecated: false,
// Force exit for E2E tests - HTTP connection pools are hard to clean up
// This is standard practice for integration tests
forceExit: true,
// Set NODE_OPTIONS for isolated-vm and Babel traverse compatibility
testEnvironmentOptions: {
NODE_OPTIONS: '--no-node-snapshot',
},
};
export default config;