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
Rendering and deploy
Releases
Adoption
Sources
- 2026-11-16: links, Runtime, Categories, Install with
raw.githubusercontent.com/testdouble/testdouble.js/main/README.md - 2026-11-16: links, License, Written in, GitHub stars
api.github.com/repos/testdouble/testdouble.js - 2026-11-16: Maintainer, License model
raw.githubusercontent.com/testdouble/testdouble.js/main/LICENSE.txt - 2026-11-16: Minimum runtime
raw.githubusercontent.com/testdouble/testdouble.js/v4.0.0/package.json - 2026-11-17: Install with
raw.githubusercontent.com/testdouble/testdouble.js/main/docs/1-installation.md - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/testdouble - 2026-11-16: Current major version, Last release, First release
registry.npmjs.org/testdouble - 2026-11-16: Contributors
api.github.com/repos/testdouble/testdouble.js/contributors?per_page=1 - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/testdouble