diff --git a/package.json b/package.json index 6705d390..3ba5ac37 100644 --- a/package.json +++ b/package.json @@ -202,7 +202,9 @@ "moduleNameMapper": { "\\.(gif|png|svg|ttf|woff2)$": "/node_modules/matrix-react-sdk/__mocks__/imageMock.js", "\\$webapp/i18n/languages.json": "/node_modules/matrix-react-sdk/__mocks__/languages.json", - "^browser-request$": "/node_modules/matrix-react-sdk/__mocks__/browser-request.js" + "^browser-request$": "/node_modules/matrix-react-sdk/__mocks__/browser-request.js", + "^react$": "/node_modules/react", + "^react-dom$": "/node_modules/react-dom" }, "transformIgnorePatterns": [ "/node_modules/(?!matrix-js-sdk).+$",