mirror of
https://git.um-react.app/um/um-react.git
synced 2026-10-26 00:13:01 +00:00
refactor: major package updates
This commit is contained in:
@@ -3,8 +3,9 @@ import '@testing-library/jest-dom';
|
||||
// FIXME: Use something like jsdom-worker?
|
||||
// see: https://github.com/developit/jsdom-worker
|
||||
if (!global.Worker) {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access
|
||||
(global as any).Worker = class MockWorker {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
|
||||
events: Record<string, (e: unknown) => void> = Object.create(null);
|
||||
|
||||
onmessage = undefined;
|
||||
|
||||
Reference in New Issue
Block a user