testdouble / testdouble/testdouble.js

a "Coming from Sinon" doc

Open
#219 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.4k
Forks
140
Avg merge
22h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the existing documentation for spies and test doubles, then compare its terminology with Sinon’s usage. The work is done when a focused “Coming from Sinon” guide covers why testdouble.js spies differ and why it does not provide Sinon’s partial-mock or call-through mode.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, testing
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.