mirror of
https://git.um-react.app/um/um-react.git
synced 2025-11-28 11:33:02 +00:00
test: working test with TypeScript + vite (using vitest)
This commit is contained in:
@@ -6,7 +6,7 @@ import { DecryptionQueue } from '~/util/DecryptionQueue';
|
||||
export const workerClient = new Worker(new URL('./worker', import.meta.url), { type: 'module' });
|
||||
|
||||
// FIXME: report the error so is obvious to the user.
|
||||
workerClient.onerror = (err) => console.error(err);
|
||||
workerClient.addEventListener('error', console.error);
|
||||
|
||||
export const workerClientBus = new WorkerClientBus<DECRYPTION_WORKER_ACTION_NAME>(workerClient);
|
||||
export const decryptionQueue = new DecryptionQueue(workerClientBus);
|
||||
|
||||
Reference in New Issue
Block a user