facebook avatar

Test

This handles React's multi-channel testing setup so you don't have to remember which yarn command maps to which release channel. You can run tests against source, experimental, stable, www-modern, or www-classic with simple arguments like `/test experimental ReactFiberHooks`. The skill enforces the --silent and --no-watchman flags that prevent common sandboxing issues. It also reminds you about the two www variants when testing __VARIANT__ flags, which is easy to forget. If you're working on React core and need to verify behavior across different build configurations, this saves you from context-switching to documentation every time you want to run a test suite.

skills.sh installs
1.1K
GitHub stars
246.5K
last updated
Jul 14, 2026

Install

$ npx -y skills add facebook/react --skill test --agent claude-code

Installs into .claude/skills of the current project.

Files

Run tests for the React codebase.

Arguments:

  • $ARGUMENTS: Channel, flags, and test pattern

Usage Examples:

  • /test ReactFiberHooks - Run with source channel (default)
  • /test experimental ReactFiberHooks - Run with experimental channel
  • /test www ReactFiberHooks - Run with www-modern channel
  • /test www variant false ReactFiberHooks - Test VARIANT=false
  • /test stable ReactFiberHooks - Run with stable channel
  • /test classic ReactFiberHooks - Run with www-classic channel
  • /test watch ReactFiberHooks - Run in watch mode (TDD)

Release Channels:

  • (default) - Source/canary channel, uses ReactFeatureFlags.js defaults
  • experimental - Source/experimental channel with EXPERIMENTAL flags = true
  • www - www-modern channel with VARIANT flags = true
  • www variant false - www channel with VARIANT flags = false
  • stable - What ships to npm
  • classic - Legacy www-classic (rarely needed)

Sponsors

Details

Repository
github.com/facebook/react
Categories
Frontend Development, Testing & QA

More from facebook/react

All 8
1facebook avatarverifyfacebook/reactverify1.1Kskills.sh installs
2facebook avatarfeature-flagsfacebook/reactfeature flags1Kskills.sh installs
3vercel avatarauthoring-skillsvercel/next.jsauthoring skills1Kskills.sh installs
4angular avatarreference-coreangular/angularExplains the mental model and architecture of the code under `packages/core`. You MUST use this skill any time you plan to work with code in `packages/core`992skills.sh installs
5vercel avatarruntime-debugvercel/next.jsruntime debug990skills.sh installs
6facebook avatarflagsfacebook/reactflags942skills.sh installs