Preparing for system design interviews?  Try bugzed.com →

A Mocking Framework

JSON →
library 4.0.8 ·javascript
verified Jun 17, 2026

The `a` package provides a versatile mocking framework for JavaScript and TypeScript, designed to be used with any testing framework. It is currently stable at version 4.0.8, with recent updates including the addition of comprehensive TypeScript types in v4.0.7, indicating an active development cadence. Key differentiators include its ability to create both partial mocks (which fall back to the original function) and strict mocks (which throw on unexpected calls), alongside detailed argument expectation, advanced matching for arrays and objects, and control over repeat behaviors. This allows for precise control over test doubles, supporting TDD and BDD methodologies in unit testing scenarios. The framework provides flexible options for stubbing and verification of function calls.

total hits 42
actors 8 distinct systems
last hit 16d ago human
GPTBot
4
Amazonbot
4
ByteDance
3
Script
1
Search engines
13
Humans
12

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇨🇦 Canada · 🇨🇳 China · 🇦🇺 Australia