Move common unit test `mocks` to the `setup` phase to avoid duplicate code
#1523 · Go · ★ 559 · Apache-2.0 · updated 3mo ago
Current Limitation In our Vite-based unit tests, common mocks are repeated across multiple test files. For example: vi.mock('@asgardeo/react-router', () => ({ ProtectedRoute: ({children}: {children: React.ReactNode}) => <div data-testid="protected-route">{children}</div>, }));…