module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
testTimeout: 10000,
// Separate test configurations
projects: [
{
displayName: 'unit',
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['<rootDir>/src/**/__tests__/*.test.ts'],
},
{
displayName: 'integration',
preset: 'ts-jest',
testEnvironment: 'node',
testMatch: ['<rootDir>/integration-tests/**/*.integration.test.ts', '<rootDir>/tests/**/*.integration.test.ts'],
testTimeout: 30000,
setupFiles: ['dotenv/config'],
},
],
};