Fix tests
This commit is contained in:
parent
17450b4531
commit
9704033dc8
3 changed files with 11 additions and 2 deletions
|
@ -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 a new issue