I have an esm
project I'm trying to test with ava
, nyc
and sinon
. I have had some success using sinon to spy on console.log and report whether or not it is being called, but on another set of files, where I feel I'm doing the same things, I can't get it to work. I don't know if it's sinon or ava or what is the problem. I made a test repo here. When you run npm run test
it will fail and say console.log was not called, but you can see at the top of the output a statement was logged. What am I doing wrong?
Thank you!