Test fixup
This commit is contained in:
parent
6a8680f500
commit
232412d7bc
@ -76,6 +76,9 @@
|
||||
"transformIgnorePatterns": [
|
||||
"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
|
||||
},
|
||||
"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…
x
Reference in New Issue
Block a user