Skip to content
Development
Command

/test

Generate comprehensive tests

From plugin
tool-ui
7657 skills5 agents7 commands
Install
$ npx -y skills add assistant-ui/tool-ui --agent claude-code

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/test

Context preview

What this command does when you run it.

Generate comprehensive tests

Command definition

test.md
description: Generate comprehensive tests

Generate unit tests for $ARGUMENTS covering:

1. **Happy Path** - Normal expected behavior 2. **Edge Cases** - Boundary conditions, empty states, null/undefined 3. **Error Handling** - Failed API calls, invalid inputs, exceptions 4. **User Interactions** - Clicks, inputs, form submissions 5. **State Changes** - Component state updates, prop changes 6. **Async Behavior** - Promises, loading states, race conditions

Use:

  • React Testing Library for components
  • Mock external dependencies
  • Descriptive test names
  • Arrange-Act-Assert pattern
  • Follow existing test patterns in the codebase
Ships withtool-ui

UI components for AI interfaces

Get the whole plugin