module.exports = { preset: 'ts-jest', testEnvironment: 'node', moduleFileExtensions: ['ts', 'tsx', 'js'], transform: { '^.+\\.(ts|tsx)$': 'ts-jest' }, testRegex: '(/__tests__/.*|(\\.|/)(test|spec))\\.[jt]sx?$', setupFilesAfterEnv: ['/jest.setup.ts'], coveragePathIgnorePatterns: ['/next.config.js', '/node_modules/'], testPathIgnorePatterns: ['/dist/', '/out/', '/node_modules/'], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json', 'node'], moduleNameMapper: { '\\.css$': '/__mocks__/styleMock.js', '~/(.*)': '/$1' }, snapshotSerializers: ['enzyme-to-json/serializer'], globals: { 'ts-jest': { tsConfig: '/tsconfig.test.json' } } };