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

Function createTestQueryClient

site/src/testHelpers/renderHelpers.tsx:28–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26// Creates one query client for each test case, to make sure that tests are
27// isolated and can't affect each other
28export function createTestQueryClient() {
29 return new QueryClient({
30 defaultOptions: {
31 queries: {
32 retry: false,
33 gcTime: 0,
34 refetchOnWindowFocus: false,
35 networkMode: "offlineFirst",
36 },
37 },
38 });
39}
40
41export const renderWithRouter = (
42 router: ReturnType<typeof createMemoryRouter>,

Callers 6

createWrapperFunction · 0.90
renderHookWithAuthFunction · 0.90
renderWithQueryClientFunction · 0.90
WrapperFunction · 0.90
renderWithRouterFunction · 0.70

Calls

no outgoing calls

Tested by 3

createWrapperFunction · 0.72
renderWithQueryClientFunction · 0.72
WrapperFunction · 0.72