export default { testEnvironment: 'node', transform: { '^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { presets: ['next/babel'] }] }, moduleNameMapper: { '^@/(.*)$': '/src/$1' }, moduleFileExtensions: ['js', 'jsx', 'ts', 'tsx'], testMatch: ['**/__tests__/**/*.[jt]s?(x)', '**/?(*.)+(spec|test).[jt]s?(x)'], transformIgnorePatterns: [ '/node_modules/(?!next)' ], setupFiles: ['./jest.setup.mjs'], testPathIgnorePatterns: [ '/node_modules/', '/.next/', '/e2e/' ] };