(id: string)
| 123 | } |
| 124 | |
| 125 | function createUsersCollection(id: string) { |
| 126 | return createCollection( |
| 127 | mockSyncCollectionOptions<User>({ |
| 128 | id, |
| 129 | getKey: (user) => user.id, |
| 130 | initialData: [ |
| 131 | { id: 1, name: `Alice` }, |
| 132 | { id: 2, name: `Bob` }, |
| 133 | { id: 4, name: `Unmatched` }, |
| 134 | ], |
| 135 | }), |
| 136 | ) |
| 137 | } |
| 138 | |
| 139 | function createCollectionWithLoadSubsetTracking<T extends object>( |
| 140 | id: string, |
no test coverage detected