Skip to content

Conversation

@erunion
Copy link
Member

@erunion erunion commented May 2, 2022

🧰 Changes

  • Allowing installs on React 18 codebases.

🧬 QA & Testing

All React 18 tests should be passing!

@erunion erunion added the enhancement New feature or request label May 2, 2022
@erunion erunion marked this pull request as ready for review May 2, 2022 16:03
@erunion erunion requested review from a team, ellierossuck, kellyjosephprice and rafegoldberg and removed request for a team May 2, 2022 16:03
run: npm i react@${{ matrix.react }} react-dom@${{ matrix.react }}

# `@testing-library/react@13` dropped support for React 16 and 17 so to ensure that we run
# fine under React 18 we should upgrade it if we're testing React 18.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's annoying, good note though.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be better handled by a postinstall script? That way it works locally too?

Got the idea here: https://stackoverflow.com/a/60603000/659661

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm weary of putting it in a postinstall script because those run when you install the package from npm.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, TIL. I should probably learn more about npm...

@erunion erunion merged commit 99e46eb into main May 2, 2022
@erunion erunion deleted the feat/support-react-18 branch May 2, 2022 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants