Skip to content

Commit

Permalink
fix jest path resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
shunjizhan committed Sep 28, 2023
1 parent 002c8cf commit 157a24e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions apps/extension/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,12 @@ module.exports = {
transform: {
"^.+\\.(t|j)sx?$": ["@swc/jest"],
},
moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, {
prefix: "<rootDir>/src",
}),
moduleNameMapper: {
"^rxjs/internal/(.*)$": "rxjs/dist/cjs/internal/$1",
...pathsToModuleNameMapper(compilerOptions.paths, {
prefix: "<rootDir>/src",
})
},
extraGlobals: ["Math"],
moduleFileExtensions: [...defaults.moduleFileExtensions, "ts", "tsx"],
setupFiles: [
Expand Down

0 comments on commit 157a24e

Please sign in to comment.