Skip to content

Commit

Permalink
test(jest.config): Stop transforming *.js files
Browse files Browse the repository at this point in the history
Jest only runs on the *.ts files in the src directory, so there have
never been any *.js source files for ts-jest to transform. tsc and
@vercel/ncc generate *.js output files in the build and dist
directories, respectively, but ts-jest doesn't transform these.
  • Loading branch information
Kurt-von-Laven committed Feb 25, 2023
1 parent 3b97939 commit 7f12022
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ const config: JestConfigWithTsJest = {
// See https://kulshekhar.github.io/ts-jest/docs/guides/esm-support#use-esm-presets.
preset: "ts-jest/presets/default-esm",
transform: {
"^.+\\.[jt]s$": ["ts-jest", { useESM: true }],
"^.+\\.ts$": ["ts-jest", { useESM: true }],
},
moduleNameMapper: {
"^(\\.{1,2}/.*)\\.js$": "$1",
Expand Down

0 comments on commit 7f12022

Please sign in to comment.