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

refactor(coral): Add failOnConsole for errors and warnings to test setup #2353

Merged
merged 3 commits into from
Mar 11, 2024

Conversation

programmiri
Copy link
Contributor

Description

fail-on-console is a package I've used in the past & aquarium as well as console are using it, too. I

This PR:

  • add package
  • adds config to setup after env for jest setup
  • updates the mocks we did until now
  • fixed real console error failures

⚠️ Unfortunately when we use customRender the console.error seems to happen async (?) or at leat in a way that failOnConsole is not able to catch it. We can see if we fix that in the future.

What kind of change does this PR introduce?

  • Bug fix
  • New feature
  • Refactor
  • Docs update
  • CI update

@programmiri programmiri marked this pull request as draft March 11, 2024 09:52
Signed-off-by: Mirjam Aulbach <mirjam.aulbach@aiven.io>
Signed-off-by: Mirjam Aulbach <mirjam.aulbach@aiven.io>
Signed-off-by: Mirjam Aulbach <mirjam.aulbach@aiven.io>
@programmiri programmiri marked this pull request as ready for review March 11, 2024 10:28
@programmiri programmiri self-assigned this Mar 11, 2024
Copy link
Contributor

@mathieu-anderson mathieu-anderson left a comment

Choose a reason for hiding this comment

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

Amazing. So happy to see all that stuff around handling console.error disappear!

@mathieu-anderson mathieu-anderson merged commit 0e86ad2 into main Mar 11, 2024
21 of 22 checks passed
@mathieu-anderson mathieu-anderson deleted the remove-console-errors branch March 11, 2024 12:15
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