Closed larryg01 closed 6 years ago
you could use a reporter such as mochawesome. It will generate an html and json logs for you, including the assertion errors.
Base mocha library allows for this out of the box with -R option. https://mochajs.org/#reporters
When and assertion fails it writes its output to the console, is there a way to write that said output to a file