(autoIndex: `off` | `eager` = `eager`)
| 212 | ] |
| 213 | |
| 214 | function 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 | |
| 225 | function createGroupByTests(autoIndex: `off` | `eager`): void { |
| 226 | describe(`with autoIndex ${autoIndex}`, () => { |
no test coverage detected