dbsd_tjbbfx/jeecgboot-vue3/tests/__mocks__/workerMock.ts

6 lines
130 B
TypeScript
Raw Normal View History

2024-06-25 08:55:16 +08:00
export default jest.fn().mockImplementation(() => ({
postMessage: jest.fn(),
onmessage: jest.fn(),
onerror: jest.fn(),
}));