From 120b23a5accccebf7cc582623e7133d109b3b20d Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Fri, 1 May 2026 16:53:24 +0200 Subject: [PATCH] auto-git: [change] tests/unit/first-person-navigation-controller.test.ts --- tests/unit/first-person-navigation-controller.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/unit/first-person-navigation-controller.test.ts b/tests/unit/first-person-navigation-controller.test.ts index e007935d..b56ee0af 100644 --- a/tests/unit/first-person-navigation-controller.test.ts +++ b/tests/unit/first-person-navigation-controller.test.ts @@ -167,6 +167,10 @@ function createFirstPersonLedgeGrabContext(topY = 2) { describe("FirstPersonNavigationController", () => { afterEach(() => { vi.restoreAllMocks(); + Object.defineProperty(navigator, "getGamepads", { + configurable: true, + value: undefined + }); }); it("can deactivate during a scene transition without releasing pointer lock", () => {