FindSoftware

testdouble.js

JavaScript test double library for replacing dependencies in tests and verifying the calls made to them, for Node.js and browsers.

testdouble.js is a test double library for JavaScript tests. It creates stand-ins for the dependencies a test replaces, stubs what they return and verifies how they were called. The docs folder covers the rest of the API, including the TypeScript usage.

The README links a comparison between testdouble.js and Sinon.js for readers who know Sinon.

Worth knowing

The library is written for Node.js and browsers alike. It is test-framework agnostic, and the README names Jasmine, Mocha, Tape and Jest.

Identity

Status
Active
Maintainer
Test Double, LLC3
Maintained by
Company
First release
20157

Rendering and deploy

Install with
npm, download, CDN15

Releases

Current major version
47
Last release
2026-10-127

Adoption

GitHub stars
1,4262
npm downloads a week
145,4836
Contributors
598
Dependent repositories
3,2259
Dependent packages
1,0469

Why these figures do not compare

Sources

  1. 2026-11-16: links, Runtime, Categories, Install with
    raw.githubusercontent.com/testdouble/testdouble.js/main/README.md
  2. 2026-11-16: links, License, Written in, GitHub stars
    api.github.com/repos/testdouble/testdouble.js
  3. 2026-11-16: Maintainer, License model
    raw.githubusercontent.com/testdouble/testdouble.js/main/LICENSE.txt
  4. 2026-11-16: Minimum runtime
    raw.githubusercontent.com/testdouble/testdouble.js/v4.0.0/package.json
  5. 2026-11-17: Install with
    raw.githubusercontent.com/testdouble/testdouble.js/main/docs/1-installation.md
  6. 2026-11-16: npm downloads a week
    api.npmjs.org/downloads/range/2026-11-01:2026-11-07/testdouble
  7. 2026-11-16: Current major version, Last release, First release
    registry.npmjs.org/testdouble
  8. 2026-11-16: Contributors
    api.github.com/repos/testdouble/testdouble.js/contributors?per_page=1
  9. 2026-11-16: Dependent packages, Dependent repositories
    packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/testdouble

Last reviewed · Updated · Listed since Edit on GitHubThis page as markdownas JSON