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

mfncooper/mockery

Simplifying the use of mocks with Node.js observed · 2026-08-28

github.com/mfncooper/mockery · JavaScript · NOASSERTION (other) · archived observed · 2026-08-28

Health v2 · maintenance only

10/100

  • Activity 0
  • Release rhythm 35
  • Longevity 100

Flags: no_releases archived no_license

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: 5440
  • days_rel: n/a
  • days_push: 1113
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1097 stars · 59 forks observed · 2026-08-28

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

A Node.js library that intercepts require() calls so mocks or substitutes can be injected in place of real modules during unit testing. It is not a mocking framework itself but a helper for hooking mocks from any framework into the module loading system.

Use cases

  • inject mocks into require calls for unit tests
  • replace node modules with test doubles
  • stub dependencies in node.js unit tests
  • isolate code under test from its dependencies
  • control the require cache during testing

When to choose

  • you need to mock modules loaded via require in Node.js
  • you want a framework-agnostic way to wire in test doubles
  • you need fine control over the module cache in tests

When to avoid

  • you are testing ES modules with import statements
  • you want a full mocking framework with assertion helpers
  • you need an actively developed solution with modern Node support

Facets

library · maturity maintenance

mocking testing testing developer-tools backend require-interception module-cache unit-testing test-doubles nodejs javascript

2 sources

Member repositories

RepositoryRoleHealth v2
mfncooper/mockerymain10

For agents

markdown · JSON · MCP: product_card(name="mfncooper/mockery")

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