react/scripts/rollup
Andrew Clark 268a3f60df
Add unstable APIs for async rendering to test renderer (#12478)
These are based on the ReactNoop renderer, which we use to test React
itself. This gives library authors (Relay, Apollo, Redux, et al.) a way
to test their components for async compatibility.

- Pass `unstable_isAsync` to `TestRenderer.create` to create an async
renderer instance. This causes updates to be lazily flushed.
- `renderer.unstable_yield` tells React to yield execution after the
currently rendering component.
- `renderer.unstable_flushAll` flushes all pending async work, and
returns an array of yielded values.
- `renderer.unstable_flushThrough` receives an array of expected values,
begins rendering, and stops once those values have been yielded. It
returns the array of values that are actually yielded. The user should
assert that they are equal.

Although we've used this pattern successfully in our own tests, I'm not
sure if these are the final APIs we'll make public.
2018-03-28 14:57:25 -07:00
..
plugins use different eslint config for es6 and es5 (#11794) 2017-12-11 15:52:46 +00:00
shims Fix Prettier 2018-03-21 09:41:23 +00:00
validate Add react-is package (#12199) 2018-02-11 14:08:40 -08:00
build.js Rename react-is import alias in FB bundles (#12459) 2018-03-27 08:57:11 -07:00
bundles.js Include react-is in FB build targets (#12458) 2018-03-26 16:56:06 -07:00
forks.js Add unstable APIs for async rendering to test renderer (#12478) 2018-03-28 14:57:25 -07:00
modules.js Tweaks the build script (#12444) 2018-03-23 19:51:04 +00:00
packaging.js Remove experimental RT/CS renderers (#12032) 2018-01-17 18:07:25 -08:00
results.json Update bundle sizes for 16.3.0-rc.0 release 2018-03-27 19:11:20 -07:00
stats.js Format danger percents better (#12256) 2018-02-21 15:48:37 -08:00
sync.js Remove experimental RT/CS renderers (#12032) 2018-01-17 18:07:25 -08:00
utils.js Refactor the build scripts (#11787) 2017-12-06 20:11:32 +00:00
wrappers.js Run 90% of tests on compiled bundles (both development and production) (#11633) 2017-11-23 17:44:58 +00:00