From 5b575d5627b30442ee8c69d8cb48a3a7f8137816 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Mon, 20 Jan 2020 14:28:29 -0700 Subject: [PATCH] Force Jest to resolve the js-sdk and react-sdk to src directories --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 9c878557..9c6f3a70 100644 --- a/package.json +++ b/package.json @@ -205,7 +205,9 @@ "\\$webapp/i18n/languages.json": "/node_modules/matrix-react-sdk/__mocks__/languages.json", "^browser-request$": "/node_modules/matrix-react-sdk/__mocks__/browser-request.js", "^react$": "/node_modules/react", - "^react-dom$": "/node_modules/react-dom" + "^react-dom$": "/node_modules/react-dom", + "^matrix-js-sdk$": "/node_modules/matrix-js-sdk/src", + "^matrix-react-sdk$": "/node_modules/matrix-react-sdk/src" }, "transformIgnorePatterns": [ "/node_modules/(?!matrix-js-sdk).+$",