react/scripts/jest
Dan Abramov 41f920e430
Add a test-only transform to catch infinite loops (#11790)
* Add a test-only transform to catch infinite loops

* Only track iteration count, not time

This makes the detection dramatically faster, and is okay in our case because we don't have tests that iterate so much.

* Use clearer naming

* Set different limits for tests

* Fail tests with infinite loops even if the error was caught

* Add a test
2017-12-07 20:53:13 +00:00
..
spec-equivalence-reporter Blacklist spyOn(). Add explicit spyOnProd() and spyOnDevAndProd() (#11691) 2017-11-28 14:06:26 -08:00
typescript Blacklist spyOn(). Add explicit spyOnProd() and spyOnDevAndProd() (#11691) 2017-11-28 14:06:26 -08:00
config.build.js Run 90% of tests on compiled bundles (both development and production) (#11633) 2017-11-23 17:44:58 +00:00
config.source.js Forbid Haste in Jest (#11647) 2017-11-23 18:02:47 +00:00
noHaste.js Forbid Haste in Jest (#11647) 2017-11-23 18:02:47 +00:00
preprocessor.js Add a test-only transform to catch infinite loops (#11790) 2017-12-07 20:53:13 +00:00
setupEnvironment.js Run 90% of tests on compiled bundles (both development and production) (#11633) 2017-11-23 17:44:58 +00:00
setupTests.js Add a test-only transform to catch infinite loops (#11790) 2017-12-07 20:53:13 +00:00