-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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(resolver): parentNames
is missing in package warning breadcrumbs
#4484
Conversation
Running Results Before Change LM-motnik:test motnik$ yarn install --force
yarn install v1.0.2
warning package.json: No license field
info No lockfile found.
warning [email protected]: No license field
[1/4] 🔍 Resolving packages...
warning [email protected]: Use uuid module instead
[2/4] 🚚 Fetching packages...
info [email protected]: The engine "node" is incompatible with this module. Expected version ">= 6.0.0".
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Rebuilding all packages...
success Saved lockfile. After Change LM-motnik:test motnik$ node ../lib/cli/index.js install --force
yarn install v1.0.2
warning package.json: No license field
info No lockfile found.
warning [email protected]: No license field
[1/4] 🔍 Resolving packages...
warning raven > [email protected]: Use uuid module instead
[2/4] 🚚 Fetching packages...
info [email protected]: The engine "node" is incompatible with this module. Expected version ">= 6.0.0".
[3/4] 🔗 Linking dependencies...
[4/4] 📃 Rebuilding all packages...
success Saved lockfile. |
Looks good, thanks! Now we need to add tests so nobody can ever break this again! |
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.
Needs tests. Otherwise looks good.
@motnik do you need help writing some tests for this? |
@BYK I am trying to figure out the tests structure. Would really appreciate some help in this regard. |
@motnik sorry for the late response. So here are my suggestions:
|
@BYK but these |
If you go with the second option, you should be able to create the request yourself and only check if If you wanna test the actual warnings, then you need the first path with integration tests and set up a situation where you would get warnings. I'd got with the second option since it is simpler and more robust. |
Ping! |
@motnik need assistance? :) |
@BYK apologies for the delay. Just sent the test cases. Can you have a look ? |
Added Tests for Parent Breadcrumbs
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.
Nice!
parentNames
is missing in package warning breadcrumbs
yarnpkg#4484) **Summary** Bugfix for yarnpkg#4480. Change suggested by @BYK **Test plan** Running yarn on local. _**Before Changes**_ ```bash warning [email protected]: Use uuid module instead ``` _**After Changes**_ ```bash warning raven > [email protected]: Use uuid module instead ```
…kg#4644) * chore(resolver): Minor improvements in resolver code and tests **Summary** This is a follow up to yarnpkg#4484 and yarnpkg#4478 which improves the code around those areas a bit and removes a now-unnecessary `while` loop. **Test plan** Existing tests should pass. * Fix logic
Summary
Bugfix for #4480. Change suggested by @BYK
Test plan
Running yarn on local.
Before Changes
After Changes