NagRock/ts-mockito
Mocking library for TypeScript observed · 2026-10-21
Health v2 · maintenance only
23/100
- Activity 0
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-10-21. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 3702
- days_rel: n/a
- days_push: 1346
- n_releases_24m: 0
Adoption not part of the score
996 stars · 93 forks observed · 2026-10-21
What it is AI-extracted, prompt v1, taxonomy v1, 2026-09-07, confidence 0.95
ts-mockito is a strongly typed mocking library for TypeScript inspired by Mockito. It provides mock creation, spying, stubbing, verification, and argument capture for use in unit tests.
Use cases
- create type-safe mocks of TypeScript classes
- stub method calls to return, throw, or resolve promises
- verify methods were called with specific arguments
- spy on real objects and override their behavior
- capture arguments passed to mocked methods
- verify call counts and call order in unit tests
When to choose
- you write unit tests in TypeScript and want strongly typed mocks with IDE autocomplete
- you know Mockito from Java and want a familiar API in TypeScript
- you need spies, stubs, verification, and argument capture without extra setup
When to avoid
- you need actively developed tooling - releases are infrequent
- your project uses JavaScript only without TypeScript
- you prefer an all-in-one test framework with built-in mocking like jest or vitest
Facets
library · maturity maintenance
mocking testing testing developer-tools cross-platform typescript mockito-inspired unit-testing spies stubbing test-doubles nodejs
1 source
- readme: https://github.com/NagRock/ts-mockito · fetched 2026-10-21 · 2836ff401438
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| NagRock/ts-mockito | main | 23 |
For agents
markdown · JSON · MCP: product_card(name="NagRock/ts-mockito")
Data as of 2026-10-19T08:05:51.212177+00:00 · Report a problem