From d758b4755dc7534118fa0f62f16758881a8a6123 Mon Sep 17 00:00:00 2001 From: Vladimir Date: Thu, 9 Jul 2026 10:38:06 +0200 Subject: [PATCH] fix: remove listeners in the typecheck worker's `off` (#10741) --- packages/vitest/src/node/pools/workers/typecheckWorker.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/vitest/src/node/pools/workers/typecheckWorker.ts b/packages/vitest/src/node/pools/workers/typecheckWorker.ts index b8a11a958..9120d4a30 100644 --- a/packages/vitest/src/node/pools/workers/typecheckWorker.ts +++ b/packages/vitest/src/node/pools/workers/typecheckWorker.ts @@ -46,7 +46,7 @@ export class TypecheckPoolWorker implements PoolWorker { } off(event: string, callback: (arg: any) => any): void { - this._eventEmitter.on(event, callback) + this._eventEmitter.off(event, callback) } deserialize(data: unknown): unknown { -- 2.51.2