{"library":"a","type":"library","category":null,"description":"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.","language":"javascript","status":"active","version":"4.0.8","tags":["javascript","mock","mocking","partial mock","strict mock","tdd","bdd","test runner","stub","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install a","imports":["import a from 'a';","import type { MockedFunction } from 'a';","const a = require('a');"]},{"cmd":"yarn add a","imports":[]},{"cmd":"pnpm add a","imports":[]}],"homepage":"https://www.npmjs.com/package/a","github":"https://github.com/alfateam/a","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/a","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/a/compatibility"}}