import type { Config } from 'jest';
import defaultConfig from './jest.config';

const config: Config = {
    ...defaultConfig,
    testMatch: [
        '**/__tests__/**/*.integration.test.ts',
        '**/__tests__/**/*.e2e.ts'
    ],
    // Override setupFilesAfterEnv to avoid loading global mocks
    setupFilesAfterEnv: ['<rootDir>/src/__tests__/setupIntegrationTests.ts'],
    // Ensure we don't carry over mocks
    resetMocks: true,
    restoreMocks: true,
};

export default config;
