Node.js Test-runner / TAP Protocol
So I really like the idea of Node.js using its own test-runner, and I like the idea of it using the Tap protocol. The only issue I have, is sometimes while developing my tests (using Mocha &/or Jest) I like to view the actual and expected, even when all test have passed, IDK about other people, but there has been more than one occassion where I was getting false positives, which ends up causing me a headache, as I continue with my work, just to figure out that I am working on a system that is flawed (at this point I get angry delete everything to a practical point in my tests) and have to re write a bunch of code. To avoid this pit-fall, I have learned to read test results
"Actual" & "Expected" values as a way of verifying that the tests are in fact passing for all the right reasons (constrained by the arguments that I intended them to be at any given moment in the test).
Let me say this while I am thinking it: "Jest & Mocha are overly verbose" On the other hand, the tap protocol seems to be, "not verbose enough"
I would like to have control over what tests print when they are sucessfull. To be more specific, I would like to be able to print the ACTUAL/EXPECTED values of a test even when its successful (not all, just the ones I specify)...
I had similar question, so TAP specification generally shows how subtests should be printed
and after a little research I found this article
now I checked the latest lts version (v18.14.1) of node at 2023-02-21 and I wrote a dummy test.
I used ts-node to run it
So try the latest lts node or if you don't care about the future try a custom test reporter which may give you a better control on the output which is available since v19.6.0