mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Test fixup
This commit is contained in:
parent
6a8680f500
commit
232412d7bc
2 changed files with 7 additions and 0 deletions
|
@ -76,6 +76,9 @@
|
||||||
"transformIgnorePatterns": [
|
"transformIgnorePatterns": [
|
||||||
"node_modules/(?!(roughjs|points-on-curve|path-data-parser|points-on-path|browser-fs-access)/)"
|
"node_modules/(?!(roughjs|points-on-curve|path-data-parser|points-on-path|browser-fs-access)/)"
|
||||||
],
|
],
|
||||||
|
"moduleNameMapper": {
|
||||||
|
"^worker-loader!.+": "<rootDir>/src/__mocks__/worker-mock.js"
|
||||||
|
},
|
||||||
"resetMocks": false
|
"resetMocks": false
|
||||||
},
|
},
|
||||||
"name": "excalidraw",
|
"name": "excalidraw",
|
||||||
|
|
4
src/__mocks__/worker-mock.js
Normal file
4
src/__mocks__/worker-mock.js
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
module.exports = class {
|
||||||
|
postMessage() {}
|
||||||
|
terminate() {}
|
||||||
|
};
|
Loading…
Add table
Add a link
Reference in a new issue