react/scripts/jest
Andrew Clark aecb3b6d11
Deprecate ReactDOM.render and ReactDOM.hydrate (#21652)
* Use existing test warning filter for server tests

We have a warning filter for our internal tests to ignore warnings
that are too noisy or that we haven't removed from our test suite yet:
shouldIgnoreConsoleError.

Many of our server rendering tests don't use this filter, though,
because it has its own special of asserting warnings.

So I added the warning filter to the server tests, too.

* Deprecate ReactDOM.render and ReactDOM.hydrate

These are no longer supported in React 18. They are replaced by the
`createRoot` API.

The warning includes a link to documentation of the new API. Currently
it redirects to the corresponding working group post. Here's the PR to
set up the redirect: https://github.com/reactjs/reactjs.org/pull/3730

Many of our tests still use ReactDOM.render. We will need to gradually
migrate them over to createRoot.

In the meantime, I added the warnings to our internal warning filter.
2021-06-09 13:46:55 -07:00
..
matchers Remove unstable scheduler/tracing API (#20037) 2021-04-26 19:16:18 -04:00
spec-equivalence-reporter Remove unstable scheduler/tracing API (#20037) 2021-04-26 19:16:18 -04:00
typescript Convert ES6/TypeScript/CoffeeScript Tests to createRoot + act (#21598) 2021-06-02 11:36:59 -07:00
TestFlags.js Resolve the true entry point during tests (#21505) 2021-06-02 18:03:29 -07:00
config.base.js Update jest to v26 (#21574) 2021-05-27 16:33:57 +01:00
config.build-devtools.js Update DevTools to use getCacheForType API (#20548) 2021-01-19 09:51:32 -05:00
config.build.js Migrate build tests to combined workflow (#20574) 2021-01-12 09:50:38 -08:00
config.source-persistent.js Resolve the true entry point during tests (#21505) 2021-06-02 18:03:29 -07:00
config.source-www.js Resolve the true entry point during tests (#21505) 2021-06-02 18:03:29 -07:00
config.source.js Resolve the true entry point during tests (#21505) 2021-06-02 18:03:29 -07:00
dont-run-jest-directly.js Add error when running jest directly (#12726) 2018-05-01 12:46:17 -07:00
jest-cli.js Fix DevTools test target (#21267) 2021-04-16 16:19:05 -04:00
jest.js Add new test cli (#19184) 2020-06-25 20:39:50 -04:00
jestSequencer.js Parallelize Jest in CI (#19552) 2020-08-07 16:32:59 -04:00
noHaste.js Forbid Haste in Jest (#11647) 2017-11-23 18:02:47 +00:00
preprocessor.js Update DevTools to use getCacheForType API (#20548) 2021-01-19 09:51:32 -05:00
setupEnvironment.js [DevTools] Add DevTools forked Feature flags (#18994) 2020-10-12 13:07:10 -04:00
setupGlobal.js Use toMatchInlineSnapshot for dehydrated values (#20618) 2021-04-26 12:30:34 -04:00
setupHostConfigs.js Resolve the true entry point during tests (#21505) 2021-06-02 18:03:29 -07:00
setupTests.build.js Update jest to v26 (#21574) 2021-05-27 16:33:57 +01:00
setupTests.js Remove unstable scheduler/tracing API (#20037) 2021-04-26 19:16:18 -04:00
setupTests.persistent.js Update jest to v26 (#21574) 2021-05-27 16:33:57 +01:00
setupTests.www.js Define global __WWW__ = true flag during www tests (#21504) 2021-06-01 10:16:06 -07:00
shouldIgnoreConsoleError.js Deprecate ReactDOM.render and ReactDOM.hydrate (#21652) 2021-06-09 13:46:55 -07:00