jest.config.js
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
testPathIgnorePatterns: [
'.*.utils.ts',
'.*/fixtures.ts',
'.*/*.fixtures.ts',
'.*/dist/.*',
'.*dist.*',
],
collectCoverageFrom: ['src/**/{!(fixtures),}.ts'],
coverageThreshold: {
global: {
branches: 80,
functions: 80,
lines: 80,
statements: -10,
},
},
transform: {
'\\.[jt]sx?$': ['ts-jest', { tsconfig: 'tsconfig.json' }],
},
};