-
-
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: Jest multi project runner still cannot handle exactly one project #8894
Conversation
Codecov Report
@@ Coverage Diff @@
## master #8894 +/- ##
=========================================
+ Coverage 65.09% 65.1% +0.01%
=========================================
Files 278 278
Lines 11860 11860
Branches 2922 2922
=========================================
+ Hits 7720 7722 +2
Misses 3511 3511
+ Partials 629 627 -2
Continue to review full report at Codecov.
|
Sorry about the late feedback... Would you be able to rebase, just so we are sure it still passes CI? |
Sure no problem 😁 |
Add failing test case Explicitly distinguish if project has been added using process.cwd Fix CI errors Add back old test Apply solution without isGlobalProject Apply suggestion from code review Add changelog
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 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
This PR adds a failing test case for #8860
but I haven't had any clue on how to fix itand I found a way to solve it, but I actually wonder if this is the best way to fix this. I guess I need input from the maintainers.There are failing tests when I do the following change
The main issue was that at
readConfigs
, when callingreadConfig
,skipArgvConfigOption
should only betrue
if the project is not "global". By global, I mean, it is not added fromgetProjectListFromCLIArgs
usingprocess.cwd
. That's why I changedgetProjectListFromCLIArgs
to also returnisGlobalProject
.Update: the implementation have changed based on suggestion during code review: #8894 (comment)
Test plan
Added unit test case :)