({
contextRef,
}: {
contextRef: MutableRefObject<ReturnType<typeof useSessionStats> | undefined>;
})
| 23 | * and assert against its state directly in our tests. |
| 24 | */ |
| 25 | const TestHarness = ({ |
| 26 | contextRef, |
| 27 | }: { |
| 28 | contextRef: MutableRefObject<ReturnType<typeof useSessionStats> | undefined>; |
| 29 | }) => { |
| 30 | contextRef.current = useSessionStats(); |
| 31 | return null; |
| 32 | }; |
| 33 | |
| 34 | describe('SessionStatsContext', () => { |
| 35 | it('should provide the correct initial state', () => { |
nothing calls this directly
no test coverage detected