I'm using mochify for unit testing, and would like to add some spies/mocks/stub capabilities. The package to use, it seems, is sinon, but my experience has been:
1) Install sinon as described in the docs and a dozen or more tutorials:
npm install sinon --save-dev
2) Add a spy to my tests:
var sinon = require('sinon');
...
it('yadda yadda', function() {
var callback = sinon.spy();
...
3) Run my tests:
mochify
But what I get is:
Error: module "buster-core" not found from ...
What is buster? If I npm install buster-core, I just get another one; buster-test. I install that one and need buster-assertions...
What's going on here?
Thanks