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

Function createMilestonesCollection

packages/db/tests/query/includes.test.ts:2950–2958  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2948 ]
2949
2950 function createMilestonesCollection() {
2951 return createCollection(
2952 mockSyncCollectionOptions<Milestone>({
2953 id: `includes-milestones`,
2954 getKey: (m) => m.id,
2955 initialData: sampleMilestones,
2956 }),
2957 )
2958 }
2959
2960 it(`parent with two sibling includes produces independent child collections`, async () => {
2961 const milestones = createMilestonesCollection()

Callers 1

includes.test.tsFile · 0.85

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected