# node-tap

> Test Anything Protocol test framework for JavaScript and TypeScript

Source: https://talira.ai/catalog/node-tap-k49aaxfx
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [developer tools / testing / frameworks](https://talira.ai/categories/developer-tools/testing/frameworks), [languages / javascript](https://talira.ai/categories/languages/javascript)
- Licence: BlueOak-1.0.0[^1][^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [Isaac Z. Schlueter](https://talira.ai/orgs/isaacs.md)

node-tap is a test framework for JavaScript built on the Test Anything Protocol, with strong TypeScript support. Its API is small (`t.test()` and assertions, with an optional fancier DSL), and test files are ordinary programs you can run directly. It includes a CLI, many assertion methods, snapshots, spies, module mocking, file system fixtures, lifecycle hooks, test filtering, code coverage and colour-accessible reporters. It's by Isaac Z. Schlueter.

## Links

- Website: https://node-tap.org/
- GitHub: https://github.com/tapjs/tapjs
- Docs: https://node-tap.org/

## Problems it solves

- test a Node.js library with built-in coverage
- TAP-based tests for TypeScript
- mock modules in Node.js tests

## Features

- TAP output and test files that run as plain programs
- TypeScript support
- snapshots, spies and module mocking
- file system fixtures and lifecycle hooks
- built-in code coverage
- CLI with filtering and reporters

## Trust

Overall: 0.54 out of 1.
Signals: maintenance 0.70, adoption 0.68, momentum 0.34, community 0.84, backing 0.30, extensibility 0.00.

- last commit 24 days ago
- 15 commits in the last 90 days
- latest release tap@21.8.0 2 months ago
- 2.4k GitHub stars
- 124 contributors
- accepts sponsorship (Github, Github)
- backed by Isaac Z. Schlueter

## Alternatives

- [tape](https://talira.ai/catalog/tape-w4vrry53.md): Minimal TAP-producing test harness for Node.js and browsers
- [Jest](https://talira.ai/catalog/jest-wp596gce.md): Delightful JavaScript Testing
- [AVA](https://talira.ai/catalog/ava-754svy47.md): Concise, concurrent test runner for Node.js
- [Vitest](https://talira.ai/catalog/vitest-eyy494yh.md): Next generation testing framework powered by Vite

## Sources

[^1]: https://github.com/tapjs/tapjs/blob/main/src/tap/LICENSE.md (checked 29 Nov 2026)
[^2]: https://github.com/tapjs/tapjs/blob/main/src/tap/package.json (checked 29 Nov 2026)
