Skip to content

test(cli-core): add unknown command remediation copy tests (#194) - #230

Open
aipd506 wants to merge 1 commit into
DigiNodes:mainfrom
aipd506:feat/unknown-command-remediation-tests
Open

aipd506 wants to merge 1 commit into
DigiNodes:mainfrom
aipd506:feat/unknown-command-remediation-tests

Conversation

@aipd506

@aipd506 aipd506 commented Oct 2, 2026 •

Copy link
Copy Markdown

Fixes #194

Summary of Changes

  1. Added comprehensive unknown command remediation copy tests in tests/unknown-command-remediation.test.ts.
  2. Verified unknown commands fail consistently with concise usage copy and root description.
  3. Ensured valid v1 command inventory (doctor, new, dev, test, deploy) is discoverable in remediation output.
  4. Verified no post-v1 commands (such as add, plugin, plugins, remote-template, templates, generate, build, serve, publish, compile, contract) are advertised or registered.
  5. Verified CLI binary execution conformance mapping unknown commands to validation exit code 2 while preserving zero exit code for no argument runs, --help, and --version.

Testing

  1. Vitest test suite tests/unknown-command-remediation.test.ts completed with 41 passed tests and zero failures.
  2. Static typecheck via npm run typecheck completed with zero TypeScript errors.
  3. ESLint verification via eslint . completed with zero errors or warnings.
  4. Prettier formatting check verified across all modified files.

Security

  1. Unknown command remediation ensures unknown positional arguments do not invoke unintended system operations or execute untrusted code paths.
  2. Process error handling bounds exit codes gracefully without leaking process internals or stack traces.

@coderabbitai

coderabbitai Bot commented Oct 2, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Advanced

Run ID: 8785855a-c7d3-41ae-9d96-5caab69d64ca

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

SW-094 — Add unknown-command remediation copy tests

1 participant