Skip to content

feat(no-debug): scan for screen.debug() #73

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

Merged
merged 5 commits into from
Feb 1, 2020
Merged

feat(no-debug): scan for screen.debug() #73

merged 5 commits into from
Feb 1, 2020

Conversation

KubaJastrz
Copy link
Contributor

@KubaJastrz KubaJastrz commented Jan 31, 2020

screen export was added in @testing-library/[email protected].

I think no-debug rule should also take into consideration the screen.debug() as it's basically just an utility to console.log entire testing container.

ref: testing-library/dom-testing-library#429

Copy link
Member

@Belco90 Belco90 left a comment

Choose a reason for hiding this comment

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

Hi there! First of all thanks for your contribution 🎉

The update for the rule implementation and the tests seem fine. I'm gonna ask only for a couple of doc changes, could you add:

  • screen.debug reference to "Further Reading" section
  • an incorrect example using screen.debug in "Rule Details" section

Thanks!

@KubaJastrz
Copy link
Contributor Author

Hi @Belco90,

It occurred to me that I forgot about docs while you where reviewing it 😅

Thanks for quick response, I've added incorrect code examples and links.

@KubaJastrz KubaJastrz requested a review from Belco90 February 1, 2020 19:55
@Belco90 Belco90 merged commit 153bb3a into testing-library:master Feb 1, 2020
@KubaJastrz KubaJastrz deleted the no-screen-debug branch February 1, 2020 20:47
@Belco90
Copy link
Member

Belco90 commented Feb 1, 2020

🎉 This PR is included in version 2.2.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Belco90
Copy link
Member

Belco90 commented Feb 1, 2020

@all-contributors add @KubaJastrz for code, docs and test

@allcontributors
Copy link
Contributor

@Belco90

I've put up a pull request to add @KubaJastrz! 🎉

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