RenderWithProviders

Function: renderWithProviders()

[object Object]

Defined in: testUtils.tsx:73

Renders a component wrapped with the same providers the real app tree supplies: a router, AuthContext, and AppContext. Use this for anything that calls useAuth(), useApp(), useNavigate(), useParams(), or renders <Link>.

Parameters

ui

[object Object]

__namedParameters?

RenderWithProvidersOptions = {}

Returns

[object Object]

authService

[object Object]

On this page