diff --git a/jest.config.packages.js b/jest.config.packages.js index ce6f1f267d3..09cdfa9efe5 100644 --- a/jest.config.packages.js +++ b/jest.config.packages.js @@ -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': [ + '/../base-controller/src/next', + ], '^@metamask/(.+)$': [ '/../$1/src', // Some @metamask/* packages we are referencing aren't in this monorepo, diff --git a/tsconfig.packages.json b/tsconfig.packages.json index 8d0d5aee5ed..327abba7f81 100644 --- a/tsconfig.packages.json +++ b/tsconfig.packages.json @@ -13,6 +13,7 @@ * `jest.config.packages.js`. */ "paths": { + "@metamask/base-controller/next": ["../base-controller/src/next"], "@metamask/*": ["../*/src"] }, "strict": true,