cypress-io / cypress

Fast, easy and reliable testing for anything that runs in a browser.
https://cypress.io
MIT License
47.09k stars 3.19k forks source link

Update @packages/reporter from React 17.0.2 to 18.3.1 #30511

Closed AtofStryker closed 1 week ago

AtofStryker commented 3 weeks ago

What would you like?

React 17 has been EOLed for about 2 and a half years. The cypress reporter currently still uses React 16 and will be updated to 17 in #30510. In an effort to update component testing to use React 18 in Cypress 14, a prerequisite is to update the reporter to use react 18.

Why is this needed?

We want to be on a newer version of react and progressively update so we get active support when needed. See https://legacy.reactjs.org/blog/2022/03/29/react-v18.html and https://react.dev/blog/2022/03/08/react-18-upgrade-guide for update details. A known update for us is we need to update the ReactDOM.render method in

Other

See https://github.com/facebook/react/blob/main/CHANGELOG.md#breaking-changes for more details on the breaking changes in react 18

this does NOT include deprecations in react 18, which is scoped to #30574