1. Habit
  2. Skills
  3. React test skill
react · 1K installs

React test skill
Runs by itself, React core pull request.

React tests run per channel.

Install the React test skill and make it a habit: follow https://gethabit.dev/skills/react/test.md

  1. 1Copy
  2. 2Paste into Claude Code, Codex or Cursor
  3. 3It runs by itself

1K installs252K starsMIT licenceSource on GitHub ↗

React test

by react · 1K installs

The skill

The react test skill runs tests for the React codebase on the source, experimental, stable, classic and www channels, with the right yarn command and flags.

Only when you ask.

The habit

React tests run per channel.

↻ Runs by itselfReact core pull request

How the habit works.
You don't have to.

Three questionsWhen does it start? How does it check its work? What does it remember?

One run, step by step.
Then it stops.

Stop ruleStops after one pull request per run, with at most six channel runs.

  1. 01

    Pick the pattern

    The agent takes the test pattern from the changed files, because a run without one is very slow.

  2. 02

    Parse the channel

    It reads the channel from the arguments and uses source when none is given.

  3. 03

    Map to yarn

    It picks yarn test, yarn test -r=experimental, yarn test-stable, yarn test-classic or yarn test-www.

  4. 04

    Run quietly

    Every run uses --silent so only failures show, and --no-watchman for sandboxes.

  5. 05

    Test both variants

    For __VARIANT__ flags it runs test-www once normally and once with --variant=false.

  6. 06

    Explain skips

    If a test is skipped, it checks the @gate pragma with the feature-flags skill.

  7. 07

    Report

    It reports results and failures and writes the failing patterns to the log.

What it may do.
Nothing more.

Safe by defaultIt writes only in its own folder and asks you before anything goes out.

Is it for you?
Use it when it fits.

Quick checkRead both lists. If the left one sounds like you, the React test skill helps.

Use it when

  • ✓ You change React core code
  • ✓ You test a channel-specific behavior
  • ✓ You test __VARIANT__ flags

Skip it when

  • – You test your own React app
  • – You need a type check, not tests

Questions

React test skill, answered.

Why always pass a pattern?

Without a pattern the run covers all tests, which takes very long.

What is the default channel?

The source channel, which uses the defaults from ReactFeatureFlags.js.

How do I install the React test skill?

Copy the prompt at the top into your agent. It installs the skill from react/react and sets up the habit. Or run npx skills add react/react --skill test.

Is the React test skill free?

Yes. It is published under MIT. Habit is free too.

React test. Now as a habit.

Install the React test skill and make it a habit: follow https://gethabit.dev/skills/react/test.md

  • Free
  • No account
  • Undo in one line

All react skills →More code skills →

Works in

  • Claude Code
  • Codex
  • Cursor
  • ChatGPT
  • Claude app

Made by react, published under MIT. Habit links to the original and never changes it. Is this your skill?

Copying didn't work here. Select the line and copy it by hand.