()
| 11 | |
| 12 | test('debug pretty prints the container', () => { |
| 13 | const HelloWorld = () => <h1>Hello World</h1> |
| 14 | const {debug} = render(<HelloWorld />) |
| 15 | debug() |
| 16 | expect(console.log).toHaveBeenCalledTimes(1) |
| 17 | expect(console.log).toHaveBeenCalledWith( |
| 18 | expect.stringContaining('Hello World'), |
| 19 | ) |
| 20 | }) |
| 21 | |
| 22 | test('debug pretty prints multiple containers', () => { |
| 23 | const HelloWorld = () => ( |
nothing calls this directly
no test coverage detected
searching dependent graphs…