Closed johnjeffers closed 8 months ago
Confirmed this is an issue. Looks like the fix for #8 and #9 has an unintended side-affect.
@AleG94 I highly recommend using @gmrchk/cli-testing-library to add functional tests. You can use it to make assertions on the output of CLI-based execution, e.g. stdout from the execution of mocha tests.
Just released a fix for this with 0.4.1, hoping I'm not missing any particular use case.
Please let me know if everything is working fine for you as well.
Thanks @vassudanagunta for suggesting that awesome package, I did not have time to implement it right now but I will try for the next releases!
Fast turnaround! Confirmed that this has been fixed (and 8 and 9 haven't regressed).
I did not have time to implement it right now but I will try for the next releases!
Do you want me to submit a PR with a single example test using that package to save you the time of figuring it out?
0.4.0 is suppressing all of the test output. Rolling back to 0.3.1 restored normal behavior.
Output from 0.3.1:
Output from 0.4.0:
In my test file, I'm using standard
node:assert
An example test looks like this:
Let me know if you need any more info.