-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
fix: improve support for it.each involving tagged template literals #701
Conversation
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.
Wow, thanks for this - I'm not sure how we missed it for so long!
I've left a few nits, and asked to have the interface renamed and its export removed (since its not needed); otherwise I think this is good to go!
@@ -43,12 +49,14 @@ export default createRule({ | |||
function getPreferredNodeName(nodeName: string) { |
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.
nit: a good refactor for this could be to do split('.')
- then you could just splice the only
/skip
in as element 1, and return .join('.')
.
I'm fine with this how it is, so that doesn't have to be done - just thinking of the future :)
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.
I think I'll leave this one as-is
hey @G-Rath, I've made the changes you requested - is there anything else I need to do? |
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.
is there anything else I need to do?
You need to prod me because I apparently forgot to approve and merge this 😅
## [24.1.1](v24.1.0...v24.1.1) (2020-11-12) ### Bug Fixes * improve support for it.each involving tagged template literals ([#701](#701)) ([2341814](2341814))
🎉 This PR is included in version 24.1.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
@k-yle getting some |
@shobhitsharma yep looks like this PR broke |
@SimenB I won't have time until next Tuesday so if someone else wants to do it before then, go for it 👍 it may also be above my skill level to fix this edge case - I don't know how also, do we know how to reproduce #711? |
it.each
has an unusual syntax which meansno-disabled-tests
,no-test-prefixes
, andconsistent-test-it
don't work for it.This PR makes
it.each
work with those three rules