dillon1000/react

Commit

Set up test infra for dynamic Scheduler flags (#22139)

I copied the set up we use for React.

In the www-variant test job, the Scheduler `__VARIANT__` flags will be
`true`. When writing a test, we can read the value of the flag with the
`gate` pragma and method.

Note: Since these packages are currently released in lockstep, maybe we
should remove SchedulerFeatureFlags and use ReactFeatureFlags for both.
Browse files
Changed paths5 files
First-parent comparison
M packages/scheduler/src/SchedulerFeatureFlags.js ModifiedA packages/scheduler/src/forks/SchedulerFeatureFlags.www-dynamic.js AddedM packages/scheduler/src/forks/SchedulerFeatureFlags.www.js ModifiedM scripts/jest/TestFlags.js ModifiedM scripts/jest/setupTests.www.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…