-
Notifications
You must be signed in to change notification settings - Fork 471
feat: add defaultIgnore
config option
#1138
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
Conversation
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 83a9db2:
|
byText
0d77a8d
to
113ffa4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. This was planned as a follow-up but I didn't have time.
Could you make a PR to the docs as well?
Codecov Report
@@ Coverage Diff @@
## main #1138 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 25 24 -1
Lines 985 985
Branches 320 321 +1
=========================================
Hits 985 985
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Opened the PR here: testing-library/testing-library-docs#1088 not sure about how to release and in what order. 😅 Is that something the maintainers will do? Thanks again! |
83a9db2
113ffa4
to
83a9db2
Compare
@robin-drexler You don't have to worry about that. Thanks in advance to create both PRs!
|
Perfect, thanks a lot! Let me know if I can do anything to support. |
I just click two buttons and change the order every so often 😅 |
byText
defaultIgnore
config option
@all-contributors add @robin-drexler for code |
I've put up a pull request to add @robin-drexler! 🎉 |
🎉 This PR is included in version 8.14.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
What:
Adds
defaultIgnore
config option forbyText
in a similar vein to what already exists withdefaultHidden
forbyRole
.Why:
Allows to set a default
ignore
globally for a project.How:
Adds new config option. Also uses potentially overridden config value in places where the the default const was used before as this seemed to make sense to me.
Is this a change you'd be willing to accept?
If yes, I'd be happy to add docs etc. Thanks! :)
Checklist:
docs site: docs: add docs about defaultIgnore config testing-library-docs#1088 (review)