const TEST_REGEX = '(/__tests__/.*|(\\.|/)(test|spec))\\.(jsx?|js?|tsx?|ts?)$' module.exports = { setupFiles: ['/jest.setup.js'], globals: { 'ts-jest': { 'useBabelrc': true } }, testRegex: TEST_REGEX, transform: { '^.+\\.tsx?$': 'ts-jest' }, testPathIgnorePatterns: [ '/.next/', '/node_modules/' ], moduleFileExtensions: [ 'ts', 'tsx', 'js', 'jsx' ], collectCoverage: true }