react/scripts
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
..
babel Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
bench Update Readme (#14176) 2018-11-12 16:25:32 +00:00
circleci Run persistent mode tests in CI (#15029) 2019-03-11 10:56:34 -07:00
error-codes Swap expect(ReactNoop) for expect(Scheduler) (#14971) 2019-02-28 12:54:47 -08:00
eslint Refactor ESLint configuration to enable better IDE integration (#13914) 2018-11-08 17:56:35 +00:00
eslint-rules Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
facts-tracker Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
flow [Fizz] New Server Rendering Infra (#14144) 2018-11-30 11:38:22 -08:00
git Remove leftover env variable logic in pre-commit hook 2015-09-01 14:35:47 -07:00
jest Run persistent mode tests in CI (#15029) 2019-03-11 10:56:34 -07:00
perf-counters Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
prettier Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
print-warnings Fix babel-preset-fbjs configure link in comment (#13666) 2018-10-21 12:23:24 -05:00
release Fixed typo (#14943) 2019-02-24 09:50:23 -08:00
rollup Swap expect(ReactNoop) for expect(Scheduler) (#14971) 2019-02-28 12:54:47 -08:00
shared [Fizz] New Server Rendering Infra (#14144) 2018-11-30 11:38:22 -08:00
tasks Switch to @sizebot token (#13622) 2018-09-11 21:06:44 +01:00
authors AUTHORS 2013-09-09 23:42:54 -07:00