test
Use when you need to run tests for React core. Supports source, www, stable, and experimental channels.
Install
git clone https://github.com/react/react /tmp/react && ln -s /tmp/react/.claude/skills/test ~/.claude/skills/test
From README
Run tests for the React codebase. Arguments: $ARGUMENTS: Channel, flags, and test pattern 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) Instructions: Parse channel from arguments (default: source) Map to yarn command: (default) → yarn test --silent --no-watchman experimental →...
More from this repo
extract-errors
Used when adding new error messages to React, or seeing "unknown error code" warnings.
feature-flags
Used when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test...
flags
Used when you need to check feature flag states, compare channels, or debug why a feature behaves differently across...
