Skip to content

Commit

Permalink
Migrate ts-jest configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
yhatt committed Sep 20, 2018
1 parent 65b7a9e commit 8b9e8ff
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -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$': '<rootDir>/test/_transformers/css.ts',
},
testEnvironment: 'node',
Expand Down

0 comments on commit 8b9e8ff

Please sign in to comment.