/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */ module.exports = { preset: 'ts-jest', testEnvironment: 'node', setupFilesAfterEnv: ['./jest.setup.js', 'jest-matcher-specific-error'], globals: { 'ts-jest': { tsconfig: 'tsconfig.test.json', }, }, moduleNameMapper: { '^@/(.*)$': '/src/$1', '^jose/(.*)$': '/node_modules/jose/dist/node/cjs/$1', }, coveragePathIgnorePatterns: ['/node_modules/', '/build/'], coverageReporters: ['text-summary', 'lcov'], };