test: add useLayoutEffect mock to ConsoleOAuthFlow tests

This commit is contained in:
reikernodd 2026-05-10 14:05:31 +01:00
parent b732ae4162
commit ae7e1fa777

View File

@ -9,6 +9,7 @@ mock.module('react', () => ({
useCallback: (fn: any) => fn, useCallback: (fn: any) => fn,
useMemo: (fn: any) => fn(), useMemo: (fn: any) => fn(),
useContext: () => ({}), useContext: () => ({}),
useLayoutEffect: () => {}, // Add a simple mock for useLayoutEffect
})); }));
import { ConsoleOAuthFlow } from '../ConsoleOAuthFlow.js'; import { ConsoleOAuthFlow } from '../ConsoleOAuthFlow.js';