MCPcopy Create free account
hub / github.com/TanStack/db / createPersonsCollection

Function createPersonsCollection

packages/db/tests/query/nested-props.test-d.ts:67–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65]
66
67function createPersonsCollection() {
68 return createCollection(
69 mockSyncCollectionOptions<Person>({
70 id: `test-persons`,
71 getKey: (person) => person.id,
72 initialData: samplePersons,
73 }),
74 )
75}
76
77describe(`Nested Properties Types`, () => {
78 const personsCollection = createPersonsCollection()

Callers 1

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected