Loading
React Component Testing with Vitest Workshop 0 exercises
lesson

Recap Of Debugging

Loading lesson

Transcript

00:00 All right! You've completed the debugging section of this workshop. Now you have a few new techniques to add to your arsenal, in addition to everything you knew before, to help you debug any code in JavaScript. And that includes your tests. Now you know how to inspect the current state of the DOM using the built-in debug function in Vitest. Also add manual breakpoints using the debugger

00:19 statement, and also inline breakpoints right in your editor, including the conditional ones, to debug the most intricate of scenarios. I hope this empowers you to tackle any failed tests in the future. So instead of dreading that failed CI pipeline, you will be encouraged and excited to see what's wrong using the techniques that you just learned.