/* @vitest-environment jsdom */ import { useQueryClient } from "@tanstack/react-query"; import { render, screen } from "@testing-library/react"; import { describe, expect, it } from "vitest"; import { AppProviders } from "@/components/providers/app-providers"; function Probe() { const queryClient = useQueryClient(); return
{queryClient ? "ready" : "missing"}
; } describe("AppProviders", () => { it("provides a QueryClient context", () => { render( , ); expect(screen.getByTestId("probe").textContent).toBe("ready"); }); });