MCPcopy Index your code
hub / github.com/coder/coder / createWrapper

Function createWrapper

site/src/modules/dashboard/useUpdateCheck.test.tsx:9–14  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7import { useUpdateCheck } from "./useUpdateCheck";
8
9const createWrapper = (): FC<PropsWithChildren> => {
10 const queryClient = new QueryClient();
11 return ({ children }) => (
12 <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>
13 );
14};
15
16beforeEach(() => {
17 localStorage.clear();

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected