vue-vben-admin/tests/__mocks__/workerMock.ts

6 lines
130 B
TypeScript
Raw Normal View History

2021-06-17 22:56:21 +08:00
export default jest.fn().mockImplementation(() => ({
postMessage: jest.fn(),
onmessage: jest.fn(),
onerror: jest.fn(),
}));