Closed mantoni closed 5 years ago
It's quite a hack, but it works fine. I'd go with this for now. I've applied the new instructions in the readme successfully to a small project and to Sinon.JS.
I tried coming up with a test case, but it's really hard, given that the tests are all integration style.
That is indeed an elaborate script
I managed to bring it down by using a nyc config in the package.json
and by invoking npm run test-headless
decorated with the additional argument. I just released mochify 6 with all the updates and will send a PR for Sinon now.
Work in progress! Do not merge!This
is an attempt to integrateintegrates mochify withnyc
. It worksfor small projects, but requires quite some complicated setup.It might be a better option to write a custom transform in this project, that uses the recent implementation of the istanbul instrumenter directly.
Ref https://github.com/sinonjs/sinon/issues/1948