Skip to content

Fix most of the warnings related to act#35926

Merged
gzdunek merged 1 commit intomasterfrom
gzdunek/fix-most-act-warnings
Dec 20, 2023
Merged

Fix most of the warnings related to act#35926
gzdunek merged 1 commit intomasterfrom
gzdunek/fix-most-act-warnings

Conversation

@gzdunek
Copy link
Copy Markdown
Contributor

@gzdunek gzdunek commented Dec 20, 2023

After upgrading React to v18, there was a lot of errors related to act. They were caused by an incorrect version of
@testing-library/dom that was resolved.
To fix this, I updated eslint-plugin-jest-dom. Starting from version v5, @testing-library/dom is a peer dependency there.

Related issue: #34286 (comment)

Previously we had 346 warnings, now we have 19:

 yarn test 2>&1 | rg "^\s+console\." | wc -l
      19

@gzdunek gzdunek added the no-changelog Indicates that a PR does not require a changelog entry label Dec 20, 2023
@github-actions github-actions Bot requested a review from kimlisa December 20, 2023 10:05
Copy link
Copy Markdown
Member

@ravicious ravicious left a comment

Choose a reason for hiding this comment

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

Nice. Just tagging #33356 to keep track of the issues Yarn v1 has caused so far.

@gzdunek gzdunek enabled auto-merge December 20, 2023 16:15
@gzdunek gzdunek added this pull request to the merge queue Dec 20, 2023
Merged via the queue into master with commit 0b514aa Dec 20, 2023
@gzdunek gzdunek deleted the gzdunek/fix-most-act-warnings branch December 20, 2023 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-changelog Indicates that a PR does not require a changelog entry size/sm ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants