Skip to content
Development
Command

/add-tests

Generate comprehensive tests for a component or API endpoint.

From plugin
larouex-fullstack-builder
881 skills12 agents81 commands

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.

@larouexnonprofitconsulting
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.

Stars on GitHub

Momentum

stars in total
8
Star history of LarouexNonprofitConsulting/larouex-fullstack-plugin on GitHub, a chart by star-history.com

Other commands on larouex-fullstack-builder.

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