Repository navigation
Is there a plugin that can handle Node's built-in mocks? #1758
jdmarshall
started this conversation in
General
Replies: 2 comments
|
im not aware of one yet, but that does sound like a useful plugin. the sinon-chai plugin is fairly simple so its possible someone could fork it and rework it to map to node's mocks |
0 replies
|
Lacking a better answer and the motivation to act on your advice, I'm using chai-spies for the time being. I don't have a lot of spies in my current projects so I will revisit this when the size of the problem gets bigger. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've moved a couple projects to nodejs test + chai and while a number of things work I haven't found a good substitute for sinon-chai. I miss my
to.hove.been.calledWith("foo", 3);matchers.It's nice to still be able to use chai while dropping mocha but it feels like I should drop sinon as well and just retain the matcher libraries of chai.
All reactions