Skip to content
Development
Command

/test

Generate comprehensive tests

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

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
@assistant-ui
Ships withtool-ui

UI components for AI interfaces

7761 skill5 agents
Get the whole plugin

Stars on GitHub

Momentum

stars in total
776
Star history of assistant-ui/tool-ui on GitHub, a chart by star-history.com

Other commands on tool-ui.

More commands from other plugins.

build
Auto-invoked

build

Command

Implement tasks incrementally — build, test, verify, commit. Add "auto" to run the whole plan in one approved pass.

@addyosmani@addyosmaniInstall Command