Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
Update jest.config.js
Browse files Browse the repository at this point in the history
  • Loading branch information
quisido committed Mar 20, 2021
1 parent e5e84fb commit 9a42da8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
export default {
cacheDirectory: './jest/cache',
collectCoverage: true,
coverageDirectory: './jest/coverage',
resetMocks: true,
resetModules: true,
restoreMocks: true,
roots: ['<rootDir>/src'],
collectCoverageFrom: [
'<rootDir>/src/**/*.{ts,tsx}',
'!<rootDir>/src/**/*.d.ts',
'!<rootDir>/src/**/*.stories.{ts,tsx}',
'!<rootDir>/src/**/*.test.{ts,tsx}',
'!<rootDir>/src/**/test-utils/*.{ts,tsx}',
],
coverageDirectory: './jest/coverage',
coverageThreshold: {
global: {
branches: 100,
Expand All @@ -20,10 +24,6 @@ export default {
moduleNameMapper: {
'\\.(?:css|gif|jpg|png|scss)$': '<rootDir>/test-utils/empty.ts',
},
resetMocks: true,
resetModules: true,
restoreMocks: true,
roots: ['<rootDir>/src'],
transform: {
'^.+\\.tsx?$': 'ts-jest',
},
Expand Down

0 comments on commit 9a42da8

Please sign in to comment.