mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-24 00:38:31 +08:00
Fix tests
This commit is contained in:
parent
17450b4531
commit
9704033dc8
@ -8,7 +8,12 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
[
|
||||||
"@babel/preset-react",
|
"@babel/preset-react",
|
||||||
|
{
|
||||||
|
runtime: "automatic",
|
||||||
|
},
|
||||||
|
],
|
||||||
"@babel/preset-typescript",
|
"@babel/preset-typescript",
|
||||||
],
|
],
|
||||||
plugins: ["babel-plugin-transform-vite-meta-env"],
|
plugins: ["babel-plugin-transform-vite-meta-env"],
|
||||||
|
@ -120,7 +120,8 @@
|
|||||||
"/node_modules/(?!internmap)+$"
|
"/node_modules/(?!internmap)+$"
|
||||||
],
|
],
|
||||||
"moduleNameMapper": {
|
"moduleNameMapper": {
|
||||||
"\\.(css|less|svg)+$": "identity-obj-proxy",
|
"\\.css$": "identity-obj-proxy",
|
||||||
|
"\\.svg$": "<rootDir>/test/mocks/svgr.ts",
|
||||||
"^\\./IndexedDBWorker\\?worker$": "<rootDir>/test/mocks/workerMock.ts",
|
"^\\./IndexedDBWorker\\?worker$": "<rootDir>/test/mocks/workerMock.ts",
|
||||||
"^\\./olm$": "<rootDir>/test/mocks/olmMock.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