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

fix: remove extra command log message for get* queries #106

Merged

Conversation

NicholasBoll
Copy link
Contributor

Related to #103

What:

Removing extra log message for get* queries.

Before:
Screen Shot 2020-01-29 at 3 06 00 PM

After:
Screen Shot 2020-01-29 at 3 06 50 PM

Why:

It isn't really a big deal, but it is a bit distracting seeing the log message multiple times - once as a spinner (Cypress thinks the log is still pending because the error prevented it from closing) and once as an error line.

How:

I removed the Cypress.log. Logs usually need an .end() to tell Cypress when the log is closed since Cypress commands are asynchronous. Cypress is already logging errors in commands for us, so we don't need to log as well.

Checklist:

  • Documentation N/A
  • Tests
  • Ready to be merged

Copy link
Member

@kentcdodds kentcdodds left a comment

Choose a reason for hiding this comment

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

Thanks!

@kentcdodds kentcdodds merged commit 2f62901 into testing-library:master Jan 29, 2020
@kentcdodds
Copy link
Member

🎉 This PR is included in version 5.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging this pull request may close these issues.

2 participants