diff --git a/packages/js/jest.config.js b/packages/js/jest.config.js index 0f36cd9f072..58472ffd867 100644 --- a/packages/js/jest.config.js +++ b/packages/js/jest.config.js @@ -20,13 +20,11 @@ module.exports = { "find-with-regex": "/node_modules/find-with-regex/lib/index.js", "^lodash-es$": "lodash", "^lodash-es/(.*)$": "lodash/$1", - "@yoast/ui-library": "/../ui-library/src", + "@wordpress/i18n": [ + "node_modules/@wordpress/i18n", + "/../../node_modules/@wordpress/i18n", + ], }, - moduleDirectories: [ - "/node_modules", - "/../../node_modules", - "node_modules", - ], collectCoverageFrom: [ "src/**/*.{js,jsx,ts,tsx}", ],