test
Run tests for React codebase across multiple release channels and configurations.
- Supports six release channels: source (default), experimental, www, www with variant false, stable, and classic, each with distinct feature flag configurations
- Accepts test patterns, watch mode for TDD, and variant flags to test different code paths
- Requires explicit test pattern argument to avoid running the entire test suite; uses
--silentflag to surface failures and--no-watchmanfor sandboxing compatibility - Common workflow: test the same pattern across www and www variant false to verify
__VARIANT__flag behavior; check@gatepragmas in feature-flags skill if tests skip unexpectedly
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 defaultsexperimental- Source/experimental channel with EXPERIMENTAL flags = truewww- www-modern channel with VARIANT flags = truewww variant false- www channel with VARIANT flags = false
More from facebook/react
fix
Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.
1.7Kextract-errors
Use when adding new error messages to React, or seeing "unknown error code" warnings.
958verify
Use when you want to validate changes before committing, or when you need to check all React contribution requirements.
886feature-flags
Use when feature flag tests fail, flags need updating, understanding @gate pragmas, debugging channel-specific test failures, or adding new flags to React.
846flow
Use when you need to run Flow type checking, or when seeing Flow type errors in React code.
826flags
Use when you need to check feature flag states, compare channels, or debug why a feature behaves differently across release channels.
783