PTA (v1.3.0) is a CLI test runner designed for programs using the zora testing library. It provides a simple command-line interface to run test files with patterns, supports both CommonJS and ES modules, and offers options like '--only' for focused test runs and '--reporter' (tap, log, default). As a lightweight wrapper around zora (peer dependency ^6), it automates test file discovery with sensible defaults. PTA requires Node.js >= 16. Its key differentiator is being the official zora runner with minimal configuration, unlike other test runners (Jest, AVA) that bundle their own assertion libraries or have complex configuration.
npm install ptaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Installs pta and zora, writes a simple test with zora, then runs all test files via pta CLI.
Use a file watcher like nodemon to re-run pta on file changes: nodemon --exec pta
Choose one of the supported reporters: --reporter tap or --reporter log, or omit for default.
Install pta as a dev dependency locally instead of globally.
Install zora: npm install --save-dev zora
Set "type": "module" in package.json or rename file to .mjs.
Replace require() with import statement.