mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-21 00:28:08 +08:00
Fix tests
This commit is contained in:
parent
17450b4531
commit
9704033dc8
@ -8,7 +8,12 @@ module.exports = {
|
||||
},
|
||||
},
|
||||
],
|
||||
[
|
||||
"@babel/preset-react",
|
||||
{
|
||||
runtime: "automatic",
|
||||
},
|
||||
],
|
||||
"@babel/preset-typescript",
|
||||
],
|
||||
plugins: ["babel-plugin-transform-vite-meta-env"],
|
||||
|
@ -120,7 +120,8 @@
|
||||
"/node_modules/(?!internmap)+$"
|
||||
],
|
||||
"moduleNameMapper": {
|
||||
"\\.(css|less|svg)+$": "identity-obj-proxy",
|
||||
"\\.css$": "identity-obj-proxy",
|
||||
"\\.svg$": "<rootDir>/test/mocks/svgr.ts",
|
||||
"^\\./IndexedDBWorker\\?worker$": "<rootDir>/test/mocks/workerMock.ts",
|
||||
"^\\./olm$": "<rootDir>/test/mocks/olmMock.ts"
|
||||
},
|
||||
|
3
test/mocks/svgr.ts
Normal file
3
test/mocks/svgr.ts
Normal file
@ -0,0 +1,3 @@
|
||||
// Mock file for SVG imports
|
||||
export default "SvgrURL";
|
||||
export const ReactComponent = "div";
|
Loading…
Reference in New Issue
Block a user