module.exports = { preset: 'ts-jest/presets/js-with-ts', setupFilesAfterEnv: ['/jest/setup.ts'], globals: { 'ts-jest': { tsConfig: 'jest.tsconfig.json' } }, moduleNameMapper: { '.+\\.(css|styl|less|sass|scss)$': '/jest/__mocks__/styleMock.js', '.+\\.(jpg|jpeg|png|gif|eot|otf|webp|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$': '/jest/__mocks__/fileMock.js', '\\.svg': '/jest/__mocks__/svgrMock.js' }, testPathIgnorePatterns: [ '/.next', '/node_modules', '/build', '/coverage' ], collectCoverageFrom: ['src/**/*.{ts,tsx}', '!src/@types/**/*'], collectCoverage: true }