Skip to main content

react-testing

スター0
フォーク0
更新日2026年4月17日 02:29

Estrategias de teste React + Vite + TypeScript: testes unitarios com Vitest + React Testing Library + jest-dom (padrao AAA), testes de hooks com renderHook e act, mock de API com MSW (server/handlers, reset por teste), testes de formularios com react-hook-form, queries semanticas (getByRole, getByLabelText), userEvent para interacao, cobertura minima 70%+, checklist de CI (lint/type-check/test/build). Usar quando: criar testes; revisar testes; garantir cobertura; configurar MSW; setup de ambiente de teste; corrigir bug com teste regressivo.

インストール

Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。

SKILL.md
readonly