diff --git a/apps/extension/jest.config.js b/apps/extension/jest.config.js index e3f5340d67..c957b49843 100644 --- a/apps/extension/jest.config.js +++ b/apps/extension/jest.config.js @@ -11,9 +11,12 @@ module.exports = { transform: { "^.+\\.(t|j)sx?$": ["@swc/jest"], }, - moduleNameMapper: pathsToModuleNameMapper(compilerOptions.paths, { - prefix: "/src", - }), + moduleNameMapper: { + "^rxjs/internal/(.*)$": "rxjs/dist/cjs/internal/$1", + ...pathsToModuleNameMapper(compilerOptions.paths, { + prefix: "/src", + }) + }, extraGlobals: ["Math"], moduleFileExtensions: [...defaults.moduleFileExtensions, "ts", "tsx"], setupFiles: [