MCPcopy Index your code
hub / github.com/TanStack/db / createDepartmentsCollection

Function createDepartmentsCollection

packages/db/tests/query/join.test-d.ts:36–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

34}
35
36function createDepartmentsCollection() {
37 return createCollection(
38 mockSyncCollectionOptions<Department>({
39 id: `test-departments`,
40 getKey: (dept) => dept.id,
41 initialData: [],
42 }),
43 )
44}
45
46describe(`Join Types - Type Safety`, () => {
47 test(`inner join should have required properties for both tables`, () => {

Callers 1

join.test-d.tsFile · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected