(
obj: T,
expected: Partial<{
[K in keyof T]: T[K] extends Signal<any> ? ReturnType<T[K]> : never
}>,
)
| 43 | } |
| 44 | |
| 45 | export const expectSignals = <T extends Record<string, any>>( |
| 46 | obj: T, |
| 47 | expected: Partial<{ |
| 48 | [K in keyof T]: T[K] extends Signal<any> ? ReturnType<T[K]> : never |
| 49 | }>, |
| 50 | ): void => { |
| 51 | expect(evaluateSignals(obj)).toMatchObject(expected) |
| 52 | } |
| 53 | |
| 54 | /** |
| 55 | * Reset Angular's TestBed and configure the standard TanStack Query providers for tests. |
no test coverage detected