Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add react 18.1.0 to build matrix #567

Merged
merged 1 commit into from
May 13, 2022
Merged

Add react 18.1.0 to build matrix #567

merged 1 commit into from
May 13, 2022

Conversation

luismiramirez
Copy link
Member

@luismiramirez luismiramirez commented May 11, 2022

Test against the latest stable version of React.

To make it work, several packages had to be updated such as
@testing-library/react and typescript.

The testing library was the main one causing the tests fail as React 18
changes how components are rendered, making version 11 incompatible.
That's why the React 17 tests on the build matrix now explicitly define
a previous testing library.

Typescript was also updated as a dependency, version 4.4 now sets
caught variables as unknown type if you have it configured as
strict. That feature is disabled in this commit until we update how we
handle errors in the library.

Fixes: #564

[skip changeset]

@backlog-helper
Copy link

backlog-helper bot commented May 11, 2022

✔️ All good!

New issue guide | Backlog management | Rules | Feedback

@luismiramirez luismiramirez force-pushed the react-18-to-matrix branch 3 times, most recently from b28127c to 2dbde25 Compare May 11, 2022 14:48
Test against the latest stable version of React.

To make it work, several packages had to be updated such as
`@testing-library/react` and `typescript`.

The testing library was the main one causing the test fail as React 18
changes how components are rendered, making version 11 incompatible.
That's why the React 17 tests on the build matrix now explicitly define
a previous testing library.

Typescript was also updated as a dependency, version 4.4 now sets
caught variables as `unknown` type if you have it configured as
`strict`. That feature is disabled in this commit until we update how we
handle errors in the library.
@luismiramirez luismiramirez merged commit 1f96b60 into main May 13, 2022
@luismiramirez luismiramirez deleted the react-18-to-matrix branch May 13, 2022 13:17
luismiramirez added a commit that referenced this pull request May 26, 2022
We added React 18 compatibility in our tests and for that, we updated
the integration package.json file. This update is also necessary for
users that want to use React 18. This commit adds a changeset so we can
publish those changes to NPM.

Related PR: #567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Build broken against React 18
3 participants