react/scripts/jest
Andrew Clark 4d5cb64aa2
Rewrite ReactFiberScheduler for better integration with Scheduler package (#15151)
* Rewrite ReactFiberScheduler

Adds a new implementation of ReactFiberScheduler behind a feature flag.
We will maintain both implementations in parallel until the new one
is proven stable enough to replace the old one.

The main difference between the implementations is that the new one is
integrated with the Scheduler package's priority levels.

* Conditionally add fields to FiberRoot

Some fields only used by the old scheduler, and some by the new.

* Add separate build that enables new scheduler

* Re-enable skipped test

If synchronous updates are scheduled by a passive effect, that work
should be flushed synchronously, even if flushPassiveEffects is
called inside batchedUpdates.

* Passive effects have same priority as render

* Revert ability to cancel the current callback

React doesn't need this anyway because it never schedules callbacks if
it's already rendering.

* Revert change to FiberDebugPerf

Turns out this isn't neccessary.

* Fix ReactFiberScheduler dead code elimination

Should initialize to nothing, then assign the exports conditionally,
instead of initializing to the old exports and then reassigning to the
new ones.

* Don't yield before commit during sync error retry

* Call Scheduler.flushAll unconditionally in tests

Instead of wrapping in enableNewScheduler flag.
2019-04-02 15:49:07 -07:00
..
matchers Rewrite ReactFiberScheduler for better integration with Scheduler package (#15151) 2019-04-02 15:49:07 -07:00
spec-equivalence-reporter Unify noop and test renderer assertion APIs (#14952) 2019-02-25 19:01:45 -08:00
typescript Enforce presence or absence of component stack in tests (#13215) 2018-07-16 20:20:18 +01:00
config.base.js Resolve host configs at build time (#12792) 2018-05-19 11:29:11 +01:00
config.build.js Add new mock build of Scheduler with flush, yield API (#14964) 2019-02-26 20:51:17 -08:00
config.source-fire.js Run tests for Fire feature flags (#13628) 2018-09-12 16:17:36 +01:00
config.source-new-scheduler.js Fork ReactFiberScheduler with feature flag 2019-03-20 16:28:33 -07:00
config.source-persistent.js Run persistent mode tests in CI (#15029) 2019-03-11 10:56:34 -07:00
config.source.js Resolve host configs at build time (#12792) 2018-05-19 11:29:11 +01:00
dont-run-jest-directly.js Add error when running jest directly (#12726) 2018-05-01 12:46:17 -07:00
noHaste.js Forbid Haste in Jest (#11647) 2017-11-23 18:02:47 +00:00
preprocessor.js Compile invariant directly to throw expressions (#15071) 2019-03-18 13:58:03 -07:00
setupEnvironment.js Interaction tracking follow up (#13509) 2018-09-01 12:00:00 -07:00
setupFire.js [Fire] Add initial build infrastructure (#14359) 2018-11-30 11:52:34 +00:00
setupHostConfigs.js Add new mock build of Scheduler with flush, yield API (#14964) 2019-02-26 20:51:17 -08:00
setupNewScheduler.js Fork ReactFiberScheduler with feature flag 2019-03-20 16:28:33 -07:00
setupTests.build.js Add new mock build of Scheduler with flush, yield API (#14964) 2019-02-26 20:51:17 -08:00
setupTests.js Add new mock build of Scheduler with flush, yield API (#14964) 2019-02-26 20:51:17 -08:00
setupTests.persistent.js Run persistent mode tests in CI (#15029) 2019-03-11 10:56:34 -07:00
shouldIgnoreConsoleError.js Don't suppress jsdom error reporting in our tests (#13401) 2018-08-15 17:44:46 +01:00