Frontend Test Pattern Skill — Testing skill for Claude Code
Claude Code skill for React + Vite projects — auto-generates Vitest & Testing Library tests for utils, components, hooks, and Zustand stores.
How to install Frontend Test Pattern Skill
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open hanson-hex/frontend-test-pattern-skill and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Frontend Test Pattern Skill does
Claude Code skill for React + Vite projects — auto-generates Vitest & Testing Library tests for utils, components, hooks, and Zustand stores. Companion to python-test-pattern.
Alternatives in Testing
- Langgraphjs — by langchain-ai - Offers comprehensive build and test commands with detailed TypeScript style guidelines, laye 2.7k ★
- Claude Codepro — by Max Ritter - Professional development environment for Claude Code with spec-driven workflow, TDD enforcemen 1.6k ★
- Integration Test — Test elixir plugin post-edit hooks by walking through fixture projects in test/integration/fixtures/ 174 ★
README
frontend-test-pattern
A skill for generating high-quality tests in React + Vite projects using Vitest + @testing-library/react.
Coverage
| Test type | Framework | Pattern file |
|---|---|---|
| Pure functions / utilities | Vitest | patterns/pure_function_test.md |
| React components | Vitest + @testing-library/react | patterns/component_test.md |
| Custom hooks | Vitest + renderHook | patterns/hook_test.md |
| Zustand stores | Vitest | patterns/store_test.md |
| API mocking | vi.mock / msw | patterns/api_mock.md |
| Heavy page components | Factory + Capture pattern | patterns/page_test.md |
| E2E (optional) | Playwright | patterns/e2e_playwright.md |
Install
bash install.sh
Usage
In Claude Code, this skill activates automatically when you need to write tests for a React/Vite project.
You can also say: "Write tests for utils.ts" or "Set up Vitest for this project".
Related Skills
React Test
Enforce TDD workflow for React. Write React Testing Library tests first (behavior-focused, accessibility-first
Slide Deck
Agent skill: build animated React (Vite + Framer Motion) slide decks from source material, with Codex-generate
Coverage Guard
An AI agent skill that enforces 100% test coverage for any JavaScript/TypeScript project. Works with Vitest, J
Frontend Product From Zero
用 AI 编码助手从 0 打造纯前端(mock 数据演示、不接后端)、商业级且顶级审美的 Web 应用的一条 vibe coding 流水线 skill。把 ui-ux-pro-max、frontend-design、a
Scipy Spec Rules
Standards from Scientific Python SPECs 0, 4, and 6. Apply when managing dependency versions, deprecation timel
Designmatch
Bootstrap the designmatch skill in a React Native project from a Claude Design link. Auto-imports the Visual Q
Related Agents
Creo Unit Test
Unit and integration test specialist using Vitest, Jest, and Testing Library for components, hooks, and stores
Rn Test Engineer
Use this agent to write, review or improve automated tests in a React Native or Expo project — Jest unit tests
Frontend Test Engineer
Use this agent when you need to create, review, or improve unit tests for React frontend components, hooks, an