-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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 location for test.each
#10413
Fix location for test.each
#10413
Conversation
a26fef7
to
7b9a72d
Compare
7b9a72d
to
af9414a
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.
I like it! Could you update the changelog as well?
Thanks for the changelog reminder! |
@mattphillips would you be able to give this a look? |
@mattphillips @SimenB Any updates on getting this merged? |
I'll merge friday to give @mattphillips a few more days 🙂 |
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.
LGTM 👍
Note that this was still broken on Windows using |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Fixes #10412
I'm not sure what the best approach to solving this is. I don't want to add code into
packages/jest-each/src/bind.ts
, since the callsite stuff is runner specific. But, where the location is added injest/packages/jest-jasmine2/src/index.ts
(and circus equivalent) doesn't appear to have a way to know that the spec usedeach
.What I've come up isn't great. I'm basically checking if the first result found is in the
jest-each
module, and replacing it if so. I'd appreciate suggestions for other methods.Test plan
Introduces failing tests that demonstrate the problem and fix them.