Skip to content

Commit

Permalink
chore: update jest config to resolve error module path
Browse files Browse the repository at this point in the history
  • Loading branch information
boris-w committed Nov 27, 2023
1 parent f6edf29 commit 40212c9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/sdk/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const getTsConfigBasePaths = (tsConfigFile) => {
const tsPaths = parsedTsConfig.config.compilerOptions?.paths;
return tsPaths
? pathsToModuleNameMapper(tsPaths, {
prefix: '<rootDir>/src',
prefix: '<rootDir>',
})
: {};
};
Expand Down
1 change: 1 addition & 0 deletions packages/sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
"react-dom": "18.2.0",
"rimraf": "5.0.5",
"tailwindcss": "3.3.5",
"ts-jest": "29.1.1",
"typescript": "5.2.2"
}
}
2 changes: 1 addition & 1 deletion packages/sdk/tsconfig.jest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"extends": "./tsconfig.json",
"compilerOptions": {
"target": "es2020",
"module": "commonjs",
"module": "esnext",
"moduleResolution": "node",
"jsx": "react-jsx",
"noEmit": true,
Expand Down
3 changes: 3 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 40212c9

Please sign in to comment.