Loading

While you’re writing your tests it can be helpful to see what the DOM looks like. You can do this with React Testing Library’s debug function which will log a formatted and syntax highlighted state of the DOM at the time it is called.

Transcript

Debug the DOM State During Tests using React Testing Library’s debug Function