diff --git a/tests/InputHandler.test.ts b/tests/InputHandler.test.ts index 132e88419..18f0c6497 100644 --- a/tests/InputHandler.test.ts +++ b/tests/InputHandler.test.ts @@ -40,6 +40,10 @@ describe("InputHandler AutoUpgrade", () => { ); }); + afterEach(() => { + inputHandler.destroy(); + }); + describe("Middle Mouse Button Handling", () => { test("should emit AutoUpgradeEvent on middle mouse button press", () => { const mockEmit = vi.spyOn(eventBus, "emit");