()
| 56 | |
| 57 | /** Wait for microtasks to flush */ |
| 58 | const flushPromises = () => new Promise((resolve) => setTimeout(resolve, 0)) |
| 59 | |
| 60 | /** Collect events from an effect into an array */ |
| 61 | function collectEvents<T extends object = Record<string, unknown>>( |