react/scripts/jest
Andrew Clark 4fcc25a229 Support throwing null (#10213)
* Support throwing null

In JavaScript, you can throw values of any type, not just errors. That
includes null. We currently rely on null checks to determine if a user-
provided function has thrown. This refactors our error handling code to
keep track of an explicit boolean flag instead.

* Add DOM fixture test case for break on exception behavior

* preventDefault error events during feature test

We call invokeGuardedCallbackDev at startup as part of a feature test.
But we don't want those errors to log to the console.

* Add throwing null test case

* Use ReactFeatureFlags instead of ReactDOMFeatureFlags

React ART uses this, too.

* Non-errors in error logger

If a non-error is thrown, we'll coerce the value to a string and use
that as the message.
2017-07-21 15:34:41 -07:00
..
environment.js Convert current build system to Rollup and adopt flat bundles (#9327) 2017-04-05 16:47:29 +01:00
fiber.config.json Configure Jest with Stack and Fiber as separate projects (#10214) 2017-07-19 10:35:45 -07:00
fiber.setup.js Support throwing null (#10213) 2017-07-21 15:34:41 -07:00
jest.d.ts Upgrade to jest-cli@0.9 and use Jasmine2 2016-05-25 21:48:32 +01:00
preprocessor.js Prettier 1.2 (#9462) 2017-04-20 11:18:33 -07:00
setupSpecEquivalenceReporter.js Configure Jest with Stack and Fiber as separate projects (#10214) 2017-07-19 10:35:45 -07:00
stack.config.json Configure Jest with Stack and Fiber as separate projects (#10214) 2017-07-19 10:35:45 -07:00
stack.setup.js Configure Jest with Stack and Fiber as separate projects (#10214) 2017-07-19 10:35:45 -07:00
test-framework-setup.js Fix lint (#10222) 2017-07-19 11:12:47 -07:00
ts-preprocessor.js Prettier 1.2 (#9462) 2017-04-20 11:18:33 -07:00