Skip to content

Commit

Permalink
add forgotten jest config
Browse files Browse the repository at this point in the history
  • Loading branch information
pahjbo committed Sep 25, 2024
1 parent 500dc0c commit 8fc97f2
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
// jest.config.ts
import { createDefaultEsmPreset, type JestConfigWithTsJest } from 'ts-jest'

const defaultEsmPreset = createDefaultEsmPreset()

const jestConfig: JestConfigWithTsJest = {
// [...]
...defaultEsmPreset,
moduleNameMapper: {
'^(\\.{1,2}/.*)\\.js$': '$1',
},

}

export default jestConfig

0 comments on commit 8fc97f2

Please sign in to comment.