lint: fix biome issues in new test files and helpers
This commit is contained in:
1 parent
99eb3af17b
commit
93862c2275
41 files changed
+488
-314
No files matched your search
@@ -10,7 +10,8 @@ vi.mock("node:worker_threads", () => {
|
||||
class FakeWorker {
|
||||
private handlers: Record<string, Handler[]> = {};
|
||||
on(event: string, handler: Handler) {
|
||||
(this.handlers[event] ??= []).push(handler);
|
||||
if (!this.handlers[event]) this.handlers[event] = [];
|
||||
this.handlers[event].push(handler);
|
||||
return this;
|
||||
}
|
||||
emit(event: string, ...args: unknown[]) {
|
||||
|
||||
Reference in new issue
Block a user