module.exports = { testEnvironment: 'jest-environment-jsdom', setupFilesAfterEnv: ['@testing-library/jest-dom/extend-expect', '/test/setupTests.ts'], testMatch: ['**/?(*.)test.ts?(x)'], globals: { 'ts-jest': { tsConfig: 'tsconfig.json', diagnostics: false, }, }, testEnvironment: 'node', moduleNameMapper: { '^src/(.*)$': '/src/$1' }, preset: 'ts-jest', coveragePathIgnorePatterns: ['/node_modules/', '/test/'], coverageThreshold: { global: { branches: 25, functions: 25, lines: 25, statements: 25, }, }, collectCoverage: true, };