I am using the javascript test-runner \"Mocha\".
I have a test that is failing, so I would to debug it using console.log.
console.log
But when the tests are
Use the debug lib.
import debug from 'debug' const log = debug('server');
Use it:
log('holi')
then run:
DEBUG=server npm test
And that's it!