Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions jest.config.packages.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ module.exports = {
// Here we ensure that Jest resolves `@metamask/*` imports to the uncompiled source code for packages that live in this repo.
// NOTE: This must be synchronized with the `paths` option in `tsconfig.packages.json`.
moduleNameMapper: {
'^@metamask/base-controller/next': [
'<rootDir>/../base-controller/src/next',
],
'^@metamask/(.+)$': [
'<rootDir>/../$1/src',
// Some @metamask/* packages we are referencing aren't in this monorepo,
Expand Down
1 change: 1 addition & 0 deletions tsconfig.packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* `jest.config.packages.js`.
*/
"paths": {
"@metamask/base-controller/next": ["../base-controller/src/next"],
"@metamask/*": ["../*/src"]
},
"strict": true,
Expand Down
Loading