FN-6323: mock mobile keyboard viewport lock in App tests
Keep the App test suite aligned with the mobile scroll lock hook exports.\n\n- Add a vi.fn() mock for useMobileKeyboardViewportLock in the existing useMobileScrollLock module mock.\n- Preserve the iOS and lock-state mocks used by App test coverage.\n\nFiles changed:\n packages/dashboard/app/components/__tests__/App.test.tsx | 1 +\n 1 file changed, 1 insertion(+) Fusion-Task-Id: FN-6323 Fusion-Task-Lineage: cc257afe-2ab7-4e97-b04f-2ccae28eaf38
This commit is contained in:
@@ -590,6 +590,7 @@ vi.mock("../../hooks/useViewportMode", () => ({
|
||||
// Mock isIOS so FN-3290 keyboard-open behavior is testable in jsdom
|
||||
vi.mock("../../hooks/useMobileScrollLock", () => ({
|
||||
useMobileScrollLock: vi.fn(),
|
||||
useMobileKeyboardViewportLock: vi.fn(),
|
||||
isIOS: () => true,
|
||||
_resetLockState: vi.fn(),
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user