diff --git a/jest.config.js b/jest.config.js index 5d62372d..82c663c3 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,9 +1,11 @@ +const { jestPreset } = require('ts-jest') + module.exports = { collectCoverageFrom: ['src/**/*.{j,t}s'], coveragePathIgnorePatterns: ['/node_modules/', '.*\\.d\\.ts'], coverageThreshold: { global: { lines: 95 } }, transform: { - '^.*\\.ts$': 'ts-jest', + ...jestPreset.transform, '^.*\\.s?css$': '/test/_transformers/css.ts', }, testEnvironment: 'node',