Skip to content

Commit

Permalink
swc/jest is not reporting coverage correctly https://github.com/swc-p…
Browse files Browse the repository at this point in the history
  • Loading branch information
FreakinWard committed Dec 8, 2021
1 parent 9230cfd commit c95c4db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ const createJestConfig = nextJest({ dir: '.' });
const customJestConfig = {
testEnvironment: 'jsdom',
setupFilesAfterEnv: ['<rootDir>/jest.setup.js'],
transform: {
'^.+\\.(js|jsx|ts|tsx)$': ['babel-jest', { presets: ['next/babel'] }],
},
coveragePathIgnorePatterns: ['src/core/mocks'],
coverageThreshold: {
global: {
Expand Down

0 comments on commit c95c4db

Please sign in to comment.