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

test: upgrade test-utils to latest version #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

rexxars
Copy link
Member

@rexxars rexxars commented Jun 26, 2024

As part of filing #36, I ran the tests and saw there were some warnings about using the deprecated act from the testing library. To silence this warning, I modified the code to import from react, but because the testing library is also internally calling act from react-dom, it still gave warnings.

I looked through the @testing-library/react change logs for the different major versions since the one we're currently on (13), and didn't see anything that looked too dangerous (see v14 + dom-testing-library@v9, v15 and v16).

Interestingly, upgrading does silence the warnings, but yields errors in the tests. I don't know if these are actually real bugs or an issue with the tests, but I thought it would be worth raising a PR to highlight this and perhaps have you investigate!

For what its worth, it seems to be the upgrade to v14 (+ dom-testing-library@v9) that breaks the tests.

@rexxars rexxars requested a review from christianhg June 26, 2024 23:15
@christianhg
Copy link
Collaborator

Thank you for this. I did go down the exact same path to try and silence this warning, and when I just ended up with all tests failing I decided to pause my efforts. But it's good to have an open PR for this so we can get it fixed.

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