Is there any way to make a certain test silent (show console output only if it fails) in Jest? Looks like jest --silent
makes all tests silent, which is not desirable. I need to simulate an error and make sure it's correctly handled, but unfortunately there is a third-party code that calls console.error in this case. But I don't want disable console.error completely, since I need to see the details if it fails.
Aucun commentaire:
Enregistrer un commentaire