Test CLI Application

Write integration tests for a Node.js CLI application using the built-in node:test module. Covers the exec helper pattern, output assertions, filesystem state verification, cleanup hooks, JSON output parsing, error case testing, and state restoration after destructive tests. Use when adding tests to an existing CLI, testing a new command, verifying adapter behavior across frameworks, or setting up CI for a CLI tool.

pjt222 Updated 44 repo stars

File contents

pjt222/agent-almanac commit ee4bb3de11

Frequently asked questions

npx get-skill add pjt222/test-cli-application-3