Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
thebeardedbearsas avatar

Testing React

  • 138 installs
  • 99 repo stars
  • Updated August 4, 2026
  • thebeardedbearsas/claude-craft

Helps with testing & qa tasks.

About

testing-react is a Claude Code skill for testing & qa. It helps solo builders move faster with AI-assisted coding.

  • testing-react
  • Testing & QA
  • AI-coding skill

Testing React by the numbers

  • 138 all-time installs (skills.sh)
  • Ranked #909 of 2,153 Testing & QA skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
npx skills add https://github.com/thebeardedbearsas/claude-craft --skill testing-react

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs138
repo stars99
Last updatedAugust 4, 2026
Repositorythebeardedbearsas/claude-craft

What it does

Helps with testing & qa tasks.

Files

SKILL.mdMarkdownGitHub ↗

Stratégie de Tests React 19 + Compiler 1.0

Versions : React 19.2+ | React Compiler 1.0 | Vitest 4.1+ | Playwright

React Compiler 1.0 (auto-memoization) est transparent pour les tests — tester le comportement visible, jamais les optimisations internes.

Stack recommandée 2026

TypeOutilUsage
Unit/ComposantsVitest 4.1+ Browser ModeChromium/Firefox/WebKit natif
Component TestingPlaywright CTAlternative à RTL — browser réel
E2EPlaywrightFlows utilisateur complets
MutationStrykerQualité des tests (score >= 80%)
Property-basedfast-checkGénération de cas de test

Abandonner : JSDOM (lourd, incomplet) et React Testing Library (remplacé par Playwright CT).

Sources : Vitest 4, Playwright Component Testing, Stryker Mutator

Invariants non-négociables

  • Vitest Browser Mode (provider: playwright) — pas de JSDOM
  • Tester le comportement (ce que voit l'utilisateur), pas l'implémentation
  • Ne jamais tester les optimisations du React Compiler (memoization)
  • Mutation score >= 80% via Stryker avant merge
  • Vitest workspaces pour monorepos (unit / browser séparés)
  • MSW pour mocker les appels API (pas de fetch mockée à la main)

Checklist par type

TypeVérification
ComposantVitest Browser Mode ou Playwright CT, interactions réelles
HookVitest, renderHook si nécessaire
RSCTest du rendu HTML retourné (pas de DOM)
E2EPlaywright, flows complets avec expect().toHaveURL()
Mutationnpx stryker run, seuil break >= 50, high >= 80
Détails complets, exemples de code, configs et checklists : voir REFERENCE.md

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.