Supertape is a fast, minimal TAP-compatible test runner inspired by Tape, designed for Node.js >=22 with first-class ESM support. Current stable version is 13.2.0, released with a monthly cadence. It improves on Tape with colored diffs for equal/deepEqual, async stack traces, smart timeouts, and the ability to load CSS/JSX/DOM in tests. It deliberately excludes assertion aliases, t.plan, and t.throws (recommending tryCatch/tryToCatch instead). Ships TypeScript types and provides a built-in CLI via 'tape' command.
npm install supertapeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic usage with synchronous and async tests, using t.equal and t.end.
Install try-catch or try-to-catch and use tryCatch with t.equal for error checking.
Remove t.plan() and ensure each test calls t.end() or uses async/await.
Use t.equal(actual, expected) — first argument is the actual value, second is expected.
Use dynamic import or switch to ESM: import { defineEnv } from 'supertape/env'.Upgrade Node.js to version 22 or later.
import test from 'supertape', then use test.only('name', fn).Use dynamic import: await import('supertape/env') or switch to ESM module resolution.t.equal(result, expected) — first argument is actual, second is expected.
No dependency data recorded yet.