Skip to content

Commit

Permalink
chore(deps): fix jest v29 config
Browse files Browse the repository at this point in the history
  • Loading branch information
chimurai committed Sep 23, 2022
1 parent 1055e96 commit 71a2305
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
export default {
preset: 'ts-jest/presets/default-esm',
testEnvironment: 'node',
testPathIgnorePatterns: ['<rootDir>/dist/'],
collectCoverageFrom: ['src/*.ts'],
globals: {
'ts-jest': {
useESM: true,
},
transform: {
'^.+\\.tsx?$': ['ts-jest', { useESM: true }],
},
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
Expand Down

0 comments on commit 71a2305

Please sign in to comment.