My Problem
I'm writing a test suite for a Node.js application using Mocha. The functions that I'm testing write their logs to console.log directly, without any third-party logging solution.
I don't care about logs from successful tests, just from failed tests, and since my functions are pretty verbose the test output is unnecessarily long.
What Have I Tried
- SFTW. Found this (Suppress console log of successful mocha tests), but it refers to Winston logs.
My Question
How can I suppress console.log output from passing / successful Mocha tests?