Test a CLI Application
- `scaffold-cli-command` — build the commands that these tests verify
LLM Evaluation
Evaluated by: xiaomi/mimo-v2-flash:free
Last evaluated: March 29, 2026
Prompt Preview
---
name: test-cli-application
description: >
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.
license: MIT
allowed-t...
Full prompt length: 11475 characters
Tools & Technologies
- javascript
- docker
- TypeScript
- Node.js