()
| 4 | test('render calls useEffect immediately', () => { |
| 5 | const effectCb = jest.fn() |
| 6 | function MyUselessComponent() { |
| 7 | React.useEffect(effectCb) |
| 8 | return null |
| 9 | } |
| 10 | render(<MyUselessComponent />) |
| 11 | expect(effectCb).toHaveBeenCalledTimes(1) |
| 12 | }) |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…