mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 07:55:47 +01:00
fixed worker-loader in jest tests
This commit is contained in:
7
scm-ui/jest-preset/src/__mocks__/workerMock.js
Normal file
7
scm-ui/jest-preset/src/__mocks__/workerMock.js
Normal file
@@ -0,0 +1,7 @@
|
||||
function WorkerMock() {}
|
||||
|
||||
WorkerMock.prototype.addEventListener = function() {};
|
||||
WorkerMock.prototype.removeEventListener = function() {};
|
||||
WorkerMock.prototype.postMessage = function() {};
|
||||
|
||||
module.exports = WorkerMock;
|
||||
Reference in New Issue
Block a user