-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to console.log / debug tests #2
Comments
You will see all of the log outputs before the test results. You can also try using the vitest extension: https://marketplace.visualstudio.com/items?itemName=vitest.explorer This will allow you to run individual tests and see the output on the left: You can also add break points in your code and press the play button with a bug on it, this will then stop the execution while the test is running and you can hover over variables / inspect the code during runtime: |
Awesome thankyou so much. I am new to testing in my react code so this challenge is awesome :D |
Keeping this one open as well in case others have the same question. |
Sorry had another issue, so how do we like console stuff out? It seems as if eslint has a console warn rule + i dont think console log works with testing.. are we not able to log out stuff?
The text was updated successfully, but these errors were encountered: