Skip to content
Development
Command

/add-tests

Generate comprehensive tests for a component or API endpoint.

shell
$ npx -y skills add LarouexNonprofitConsulting/larouex-fullstack-plugin --agent claude-code

Ships with larouex-fullstack-builder. Installing the plugin gets this command.

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/add-tests

Context preview

What this command does when you run it.

Generate comprehensive tests for a component or API endpoint.

Command definition

add-tests.md

Generate comprehensive tests for a component or API endpoint.

Create test suite with:

  • Unit tests using Jest and React Testing Library (for components) or Jest (for API)
  • Test file in proper location (__tests__ or .test.ts/.test.tsx)
  • Test setup with necessary mocks and fixtures
  • Render tests for different component states and props
  • Interaction tests (clicks, form input, keyboard navigation)
  • Integration tests for component with API calls
  • Accessibility tests using jest-axe
  • Edge case and error scenario tests
  • Mock implementations for external dependencies
  • Test coverage for all exported functions/components

Include proper test descriptions, assertions, and cleanup. Follow AAA pattern (Arrange, Act, Assert). Ensure tests are isolated and deterministic.

Read it on GitHub โ†—
Ships withlarouex-fullstack-builder

A comprehensive Claude Code plugin with 81 commands and 12 specialized AI agents for building modern, full-stack web applications with Next.js 15, Azure, Railway, Bootstrap, and TypeScript.

Get the whole plugin, auto-invoked