| What it is | Test Anything Protocol test framework for JavaScript and TypeScript | Minimal TAP-producing test harness for Node.js and browsers | Delightful JavaScript Testing | Concise, concurrent test runner for Node.js |
| 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
| - Tests as plain functions with plan counts, async and promise-returning tests
- Strict and loose equality, deep-equality, throws and error assertions
- Results in the Test Anything Protocol (TAP), for any TAP reporter
- A tape command that runs test files by glob, with --require, --import, --ignore and --no-only flags
- Runs in Node.js and in browsers
- Teardown hooks, per-test timeouts and onFinish/onFailure callbacks
| - zero-config setup for most projects
- interactive watch mode
- snapshot testing
- mocks and spies
- code coverage with --coverage
- tests isolated in parallel processes
- failed tests first, ordered by duration
| - runs tests concurrently
- isolated environment for each test file
- magic assert with enhanced assertion messages
- promise, async function and observable support
- TypeScript definitions included
- automatic parallel test runs in CI
- TAP reporter
|