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

chore: Adjust tests to workaround 18.3.0 bug #1315

Merged
merged 1 commit into from Apr 26, 2024

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Apr 26, 2024

Work around facebook/react#28915. Should be fixed in 18.3.0 but the special casing should remain in case we need to test against 18.3.0 specifically.

Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit f08b9d5:

Sandbox Source
react-testing-library-examples Configuration

@eps1lon eps1lon merged commit f6a1677 into testing-library:main Apr 26, 2024
10 checks passed
@eps1lon eps1lon deleted the rdtu-warning branch April 26, 2024 11:01
)
) {
// This is a React bug in 18.3.0.
// Versions with `ReactDOMTestUtils.ac` being deprecated, should have `React.act`
Copy link
Member

Choose a reason for hiding this comment

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

This is really minor, sorry:

Suggested change
// Versions with `ReactDOMTestUtils.ac` being deprecated, should have `React.act`
// Versions with `ReactDOMTestUtils.act` being deprecated, should have `React.act`

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

Successfully merging this pull request may close these issues.

None yet

2 participants