MCPcopy
hub / github.com/refinedev/refine / renderUseList

Function renderUseList

packages/core/test/mutation-helpers.ts:18–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16};
17
18export const renderUseList = () => {
19 const { result: useListResult } = renderHook(
20 () => useList({ resource: "posts" }),
21 {
22 wrapper: TestWrapper({
23 dataProvider: MockJSONServer,
24 }),
25 },
26 );
27
28 return useListResult;
29};
30
31export const renderUseMany = () => {
32 const { result: useManyResult } = renderHook(

Callers 5

useDelete.spec.tsxFile · 0.90
useUpdate.spec.tsxFile · 0.90
index.spec.tsxFile · 0.90

Calls 2

useListFunction · 0.90
TestWrapperFunction · 0.70

Tested by

no test coverage detected