react/scripts/jest
Andrew Clark bc8bd24c14
Run persistent mode tests in CI (#15029)
* Add command to run tests in persistent mode

* Convert Suspense fuzz tester to use noop renderer

So we can run it in persistent mode, too.

* Don't mutate stateNode in appendAllChildren

We can't mutate the stateNode in appendAllChildren because the children
could be current.

This is a bit weird because now the child that we append is different
from the one on the fiber stateNode. I think this makes conceptual
sense, but I suspect this likely breaks an assumption in Fabric.

With this approach, we no longer need to clone to unhide the children,
so I removed those host config methods.

Fixes bug surfaced by fuzz tester. (The test case that failed was the
one that's already hard coded.)

* In persistent mode, disable test that reads a ref

Refs behave differently in persistent mode. I added a TODO to write
a persistent mode version of this test.

* Run persistent mode tests in CI

* test-persistent should skip files without noop

If a file doesn't reference react-noop-renderer, we shouldn't bother
running it in persistent mode, since the results will be identical to
the normal test run.

* Remove module constructor from placeholder tests

We don't need this now that we have the ability to run any test file in
either mutation or persistent mode.

* Revert "test-persistent should skip files without noop"

Seb objected to adding shelljs as a dep and I'm too lazy to worry about
Windows support so whatever I'll just revert this.

* Delete duplicate file
2019-03-11 10:56:34 -07:00
..
matchers Swap expect(ReactNoop) for expect(Scheduler) (#14971) 2019-02-28 12:54:47 -08: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-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 Add a build step to hoist warning conditions (#12537) 2018-04-04 17:04:40 +01: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
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