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

Function createEmployeesCollection

packages/db/tests/query/where.test.ts:224–233  ·  view source on GitHub ↗
(autoIndex: `off` | `eager` = `eager`)

Source from the content-addressed store, hash-verified

222]
223
224function createEmployeesCollection(autoIndex: `off` | `eager` = `eager`) {
225 return createCollection(
226 mockSyncCollectionOptions<Employee>({
227 id: `test-employees`,
228 getKey: (emp) => emp.id,
229 initialData: sampleEmployees,
230 autoIndex,
231 }),
232 )
233}
234
235function createWhereTests(autoIndex: `off` | `eager`): void {
236 describe(`with autoIndex ${autoIndex}`, () => {

Callers 1

createWhereTestsFunction · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected