Skip to content

Conversation

@erunion
Copy link
Member

@erunion erunion commented Mar 31, 2022

🧰 Changes

  • Expands support to React 17.
  • Drops support for Node 12.
  • Moving tests off Enzyme and over to RTL.

This will incur a breaking release.

@erunion erunion added enhancement New feature or request dependencies Pull requests that update a dependency file labels Mar 31, 2022
@erunion erunion requested review from a team, kellyjosephprice, rafegoldberg and thenaomiday and removed request for a team March 31, 2022 16:59
expect(changeSelected).toHaveBeenCalledWith('project2');

expect(variable.state('showDropdown')).toBe(false);
expect(container.querySelector('select')).not.toBeInTheDocument();
Copy link
Member Author

Choose a reason for hiding this comment

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

Was able to replace the showDropdown state check by checking if the dropdown exists in the DOM instead.

Copy link
Contributor

@kellyjosephprice kellyjosephprice left a comment

Choose a reason for hiding this comment

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

Nice!

"peerDependencies": {
"react": "16.x"
"react": "16.x || 17.x",
"react-dom": "16.x || 17.x"
Copy link
Contributor

Choose a reason for hiding this comment

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

TIL

Copy link
Member Author

Choose a reason for hiding this comment

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

Had to add react-dom to this because @testing-library/react@12 has a peerDep of react-dom: * and that was attempting to pull down react@18.

@erunion erunion merged commit 3ce1fc3 into main Mar 31, 2022
@erunion erunion deleted the feat/react-17 branch March 31, 2022 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants