module.exports = { rootDir: '../', testMatch: [ '**/__tests__/**/*.+(ts|tsx|js)', '**/?(*.)+(spec|test).+(ts|tsx|js)', ], transform: { '\\.(ts|tsx|js|jsx)?$': 'babel-jest', '^.+\\.(ts|tsx)$': 'ts-jest', }, setupFilesAfterEnv: [ '@testing-library/jest-dom/extend-expect', ], moduleFileExtensions: ['ts', 'tsx', 'js', 'jsx', 'json'], testPathIgnorePatterns: ['/.next/', '/node_modules/'], };