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

Function createOrdersCollection

packages/db/tests/query/group-by.test.ts:214–223  ·  view source on GitHub ↗
(autoIndex: `off` | `eager` = `eager`)

Source from the content-addressed store, hash-verified

212]
213
214function createOrdersCollection(autoIndex: `off` | `eager` = `eager`) {
215 return createCollection(
216 mockSyncCollectionOptions<Order>({
217 id: `test-orders`,
218 getKey: (order) => order.id,
219 initialData: sampleOrders,
220 autoIndex,
221 }),
222 )
223}
224
225function createGroupByTests(autoIndex: `off` | `eager`): void {
226 describe(`with autoIndex ${autoIndex}`, () => {

Callers 1

createGroupByTestsFunction · 0.70

Calls 2

createCollectionFunction · 0.85

Tested by

no test coverage detected