diff --git a/__mocks__/wasmMock.js b/__mocks__/wasmMock.js new file mode 100644 index 00000000..9b5d9b34 --- /dev/null +++ b/__mocks__/wasmMock.js @@ -0,0 +1 @@ +module.exports = "css-file-stub"; diff --git a/package.json b/package.json index 76576363..f427e5b4 100644 --- a/package.json +++ b/package.json @@ -215,6 +215,7 @@ "/node_modules/matrix-react-sdk/test/setupTests.js" ], "moduleNameMapper": { + "\\.wasm$": "/__mocks__/wasmMock.js", "\\.(css|scss)$": "/__mocks__/cssMock.js", "\\.(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",