Mocha with Node: only show logs for tests that don't run

I use node with mocha and winston. Is there a way to configure it to only display logs for failed tests?

+6
source share
1 answer

If you run with the mini reporter, you will get the full result with unsuccessful tests: mocha -R min or, if you prefer the detailed version, mocha --reporter min .

+5
source

Source: https://habr.com/ru/post/912625/


All Articles