Ross ROSS = Recommend OSS · open-source software intelligence for agents

testdouble/testdouble.js

A minimal test double library for TDD with JavaScript observed · 2026-08-28

github.com/testdouble/testdouble.js · JavaScript · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

32/100

  • Activity 0
  • Release rhythm 35
  • Longevity 100

Flags: no_releases

How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 4013
  • days_rel: n/a
  • days_push: 895
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1428 stars · 139 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

testdouble.js (td.js) is a minimal, opinionated test double library for JavaScript that provides stubbing, spying, and verification for test-driven development. It works in both Node.js and browsers and is agnostic to the test framework used.

Use cases

  • mock dependencies in JavaScript unit tests
  • stub functions and objects for TDD
  • spy on function calls and verify interactions
  • replace sinon.js with a simpler mocking library
  • fake out API or module dependencies in browser tests

When to choose

  • you practice TDD and want terse, readable test doubles
  • you want a test-framework-agnostic mocking library (Jest, Mocha, Jasmine, Tape, etc.)
  • you prefer a minimal API over heavyweight mocking frameworks

When to avoid

  • you need deep integration with a specific framework's mocking ecosystem
  • you need extensive features like fake timers or module mocking built in
  • you need a library under very active development

Facets

library · maturity maintenance

testing mocking testing developer-tools browser cross-platform test-doubles tdd spies stubs sinon-alternative test-framework-agnostic javascript nodejs

1 source

Member repositories

RepositoryRoleHealth v2
testdouble/testdouble.jsmain32

For agents

markdown · JSON · MCP: product_card(name="testdouble/testdouble.js")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem