(autoIndex: `off` | `eager` = `off`)
| 229 | ] |
| 230 | |
| 231 | function createTestItemCollection(autoIndex: `off` | `eager` = `off`) { |
| 232 | return createCollection( |
| 233 | mockSyncCollectionOptions<TestItem>({ |
| 234 | id: `test-collection`, |
| 235 | getKey: (item) => item.id, |
| 236 | initialData: testData, |
| 237 | autoIndex, |
| 238 | defaultIndexType: BTreeIndex, |
| 239 | }), |
| 240 | ) |
| 241 | } |
| 242 | |
| 243 | describe(`Query Index Optimization`, () => { |
| 244 | let collection: ReturnType<typeof createTestItemCollection> |
no test coverage detected