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

File contents

pjt222/agent-almanac/tree/main/skills/test-cli-application commit e4606a1ffb

Frequently asked questions

npx skillmds@latest add pjt222/test-cli-application