testdouble.js icon indicating copy to clipboard operation
testdouble.js copied to clipboard

a "Coming from Sinon" doc

Open searls opened this issue 8 years ago • 0 comments

Worth having a doc that just covers differences in td.js vs sinon, especially where the terminology differs. Like it or not, thousands of people learned the word "spy" from sinon, where a spy is not a spy but rather a sort of partial mock / proxy.

Things to cover:

  • [ ] spies are not spies
  • [ ] re-emphasis on why test double doesn't offer a partial mock / call-through-to-real-thing mode as sinon spy() does

searls avatar Mar 25 '17 14:03 searls