From f0dbc85ca5ce8043059bc1dd0116829d370d1c9b Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 15 Jan 2020 14:06:55 -0700 Subject: [PATCH] Mock out browser-request to fix i18n --- package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 2397c8d5be..9443705a13 100644 --- a/package.json +++ b/package.json @@ -198,7 +198,8 @@ ], "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" + "\\$webapp/i18n/languages.json": "/node_modules/matrix-react-sdk/__mocks__/languages.json", + "^browser-request$": "/node_modules/matrix-react-sdk/__mocks__/browser-request.js" }, "transformIgnorePatterns": [ "/node_modules/(?!matrix-js-sdk).+$",