()
| 58 | |
| 59 | // Helper function to wait for Angular effects and collection updates |
| 60 | async function waitForAngularUpdate() { |
| 61 | // Wait for Angular change detection |
| 62 | await new Promise((resolve) => setTimeout(resolve, 0)) |
| 63 | // Additional delay for collection updates |
| 64 | await new Promise((resolve) => setTimeout(resolve, 50)) |
| 65 | } |
| 66 | |
| 67 | function createMockCollection<T extends object, K extends string | number>( |
| 68 | initial: Array<T & Record<`id`, K>> = [], |
no outgoing calls
no test coverage detected