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", () => {