(initialData = initialUsers)
| 19 | const flushPromises = () => new Promise((resolve) => setTimeout(resolve, 0)) |
| 20 | |
| 21 | function createUsersCollection(initialData = initialUsers) { |
| 22 | return createCollection( |
| 23 | mockSyncCollectionOptions<User>({ |
| 24 | id: `test-users-hook`, |
| 25 | getKey: (user) => user.id, |
| 26 | initialData, |
| 27 | }), |
| 28 | ) |
| 29 | } |
| 30 | |
| 31 | describe(`useLiveQueryEffect`, () => { |
| 32 | it(`should create effect on mount and dispose on unmount`, async () => { |
no test coverage detected
searching dependent graphs…