{"library":"tap","type":"library","category":null,"description":"TAP (Test-Anything-Protocol) is a robust and opinionated test framework for Node.js, currently in version 21.7.1. It provides a comprehensive command-line test runner and a JavaScript/TypeScript framework for writing tests that output in the TAP format. A key differentiator is its philosophy of treating test files as \"normal\" programs, running each test in its own process to prevent state leakage and inter-test dependencies. Since version 18, `tap` has been entirely rewritten in TypeScript, offering first-class support for ESM, CommonJS, and TypeScript out-of-the-box, including rich, machine-generated type definitions for an enhanced developer experience with editor auto-completion. It features built-in test coverage (powered by `c8`), various reporter formats, and an extensive API leveraging a plugin-based architecture for core functionalities like assertions and mocking. The project maintains an active release cadence with frequent updates.","language":"javascript","status":"active","version":"21.7.1","tags":["javascript","assert","tap","test","testing","framework","cli","tapjs","tapjs plugin","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install tap","imports":["import tap from 'tap'","import { test } from 'tap'","import type { Test } from 'tap'"]},{"cmd":"yarn add tap","imports":[]},{"cmd":"pnpm add tap","imports":[]}],"homepage":"https://node-tap.org","github":"https://github.com/tapjs/tapjs","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/tap","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/tap/compatibility"}}