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: reduce noise from test warnings #8251

Merged
merged 1 commit into from
Sep 25, 2024
Merged

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented Sep 25, 2024

About the changes

Reducing noise in frontend tests

Most of the console warn logs we get in frontend tests are:

  • wrap React in act warnings (since we use react testing library it shouldn't be needed)
  • MSW HTTP mock not setup

The first warning will be hopefully gone with those issues fixed:

The second warning we can ignore since we don't need to setup every HTTP interaction to make our tests pass and returning error by default should be fine.

By reducing those warning we are left with the important warnings that we can act upon

Important files

Discussion points

Copy link

vercel bot commented Sep 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-docs 🔄 Building (Inspect) Visit Preview 💬 Add feedback Sep 25, 2024 10:45am
unleash-monorepo-frontend 🔄 Building (Inspect) Visit Preview 💬 Add feedback Sep 25, 2024 10:45am

Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails

Scanned Manifest Files

Copy link
Contributor

@gastonfournier gastonfournier left a comment

Choose a reason for hiding this comment

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

This is pretty clever 🙌

@kwasniew kwasniew merged commit e680921 into main Sep 25, 2024
7 of 9 checks passed
@kwasniew kwasniew deleted the reduce-frontend-test-warnings branch September 25, 2024 10:56
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.

2 participants