Change js-sdk moduleNameMapper to apps/web (#33734)

Turns out the pnpm link has to be set to apps/web to actually work, so update the moduleNameMapper to look there too.
This commit is contained in:
David Baker
2026-06-04 12:55:25 +01:00
committed by GitHub
parent 2b36a9bf29
commit d1a6137c90
+1 -1
View File
@@ -35,7 +35,7 @@ const config: Config = {
"\\.(gif|png|ttf|woff2)$": "<rootDir>/__mocks__/imageMock.js",
"\\.svg$": "<rootDir>/__mocks__/svg.js",
"\\$webapp/i18n/languages.json": "<rootDir>/__mocks__/languages.json",
"^matrix-js-sdk(.*)$": "<rootDir>/../../node_modules/matrix-js-sdk$1",
"^matrix-js-sdk(.*)$": "<rootDir>/node_modules/matrix-js-sdk$1",
"^react$": "<rootDir>/node_modules/react",
"^react-dom$": "<rootDir>/node_modules/react-dom",
"decoderWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js",