module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
roots: ['<rootDir>'],
testMatch: ['**/*.e2e.ts'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
setupFilesAfterEnv: ['<rootDir>/setup.ts'],
testTimeout: 30000, // 30 seconds timeout for e2e tests
// Allow specifying a pattern on the command line
// Example: npm run test:e2e -- --testNamePattern="should discover the test server"
testPathIgnorePatterns: ['<rootDir>/node_modules/', '<rootDir>/dist/'],
};