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