I am running some jasmine tests on a function that needs to log something. Each time I run the tests I see the log in the output of the tests. I have quite a few logs in my functions that I am testing and didn't see a way to suppress the logs from a function I am testing.
My actual tests are spying to make sure that console.log is being called with the correct string.
It's more for testing aesthetics (just like to see a nice clean green passing and not all the logs).
Aucun commentaire:
Enregistrer un commentaire