mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 04:34:59 +08:00
stub out workers for jest tests as it doesn't like the worker-loader
This commit is contained in:
parent
50a9394c59
commit
296d5d1d5e
1
__mocks__/workerMock.js
Normal file
1
__mocks__/workerMock.js
Normal file
@ -0,0 +1 @@
|
||||
module.exports = jest.fn();
|
@ -187,7 +187,8 @@
|
||||
"\\$webapp/i18n/languages.json": "<rootDir>/__mocks__/languages.json",
|
||||
"decoderWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js",
|
||||
"decoderWorker\\.min\\.wasm": "<rootDir>/__mocks__/empty.js",
|
||||
"waveWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js"
|
||||
"waveWorker\\.min\\.js": "<rootDir>/__mocks__/empty.js",
|
||||
"workers/(.+)\\.worker\\.ts": "<rootDir>/__mocks__/workerMock.js"
|
||||
},
|
||||
"transformIgnorePatterns": [
|
||||
"/node_modules/(?!matrix-js-sdk).+$"
|
||||
|
Loading…
Reference in New Issue
Block a user