(
collection: Collection<any, any, any, any, any>,
itemId: string,
timeout: number = 10000,
)
| 96 | |
| 97 | // Helper to wait for a specific item to appear |
| 98 | async function waitForItem( |
| 99 | collection: Collection<any, any, any, any, any>, |
| 100 | itemId: string, |
| 101 | timeout: number = 10000, |
| 102 | ) { |
| 103 | await waitFor(() => collection.has(itemId), { |
| 104 | timeout, |
| 105 | message: `Item ${itemId} did not appear in collection`, |
| 106 | }) |
| 107 | } |
| 108 | |
| 109 | // Helper to wait for a specific item to disappear |
| 110 | async function waitForItemRemoved( |
no test coverage detected