dillon1000/react
Commit
Browse files 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.
Changed paths5 files
First-parent comparisonpackages/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 ModifiedPatch
Files changed
Rendering syntax-highlighted changes…