Skip to content

Commit

Permalink
test(jest.config): Treat *.ts files as ESM
Browse files Browse the repository at this point in the history
Jest began recommending use of this setting in TypeScript ESM projects
when it was introduced in v27.
  • Loading branch information
Kurt-von-Laven committed Sep 11, 2023
1 parent 6652ed7 commit 466250f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const config: JestConfigWithTsJest = {
statements: 100,
},
},
extensionsToTreatAsEsm: [".ts"],
moduleFileExtensions: ["ts", "js"],
resetMocks: true,
rootDir: "src",
Expand Down

0 comments on commit 466250f

Please sign in to comment.