UNPKG

workboots

Version:

a lightweight message proxy for webworkers and worker threads

15 lines (13 loc) 354 B
// Jest setup file import { jest } from '@jest/globals'; // Mock console methods to reduce noise in tests global.console = { ...console, log: jest.fn(), warn: jest.fn(), error: jest.fn(), }; // Mock setImmediate if not available if (typeof global.setImmediate === 'undefined') { global.setImmediate = (callback) => setTimeout(callback, 0); }