-
-
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
Add projects option, rename initial config to options. #3400
Conversation
d9c1c03
to
db58b90
Compare
packages/jest-cli/src/cli/runCLI.js
Outdated
let hasDeprecationWarnings; | ||
let configs = []; | ||
let config; | ||
if (roots.length === 1) { |
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.
Just to remember, we should rename roots
to projects
here as this is what we pass here
)), | ||
); | ||
value = list; | ||
break; |
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.
Could you add a test for normalizing projects
?
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.
Looks good, left some inline comments though.
Codecov Report
@@ Coverage Diff @@
## master #3400 +/- ##
==========================================
+ Coverage 63.99% 64.02% +0.03%
==========================================
Files 177 177
Lines 6574 6580 +6
Branches 5 5
==========================================
+ Hits 4207 4213 +6
Misses 2365 2365
Partials 2 2
Continue to review full report at Codecov.
|
* Add projects option, rename initial config to options. * Add test
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
As discussed in the team meeting today, this makes the
--project
option work via the cli or"project"
via the configuration system. It uses globs as well, so many projects can easily be specified.I will send a follow-up PR with a test for the config option but I'm quite a bit tired right now ;)
Test plan
Add
into the top level packag.json and it will actually, really, work. Amazing.