-
Notifications
You must be signed in to change notification settings - Fork 3.5k
ls: do not warn on missing optional deps #3140
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,46 @@ | |
* Make sure to inspect the output below. Do not ignore changes! | ||
*/ | ||
'use strict' | ||
exports[`test/lib/ls.js TAP ignore missing optional deps --json > ls --json problems 1`] = ` | ||
Array [ | ||
"invalid: [email protected] {project}/node_modules/optional-wrong", | ||
"missing: peer-missing@1, required by [email protected]", | ||
"invalid: [email protected] {project}/node_modules/peer-optional-wrong", | ||
"invalid: [email protected] {project}/node_modules/peer-wrong", | ||
"missing: prod-missing@1, required by [email protected]", | ||
"invalid: [email protected] {project}/node_modules/prod-wrong", | ||
] | ||
` | ||
|
||
exports[`test/lib/ls.js TAP ignore missing optional deps --parseable > ls --parseable result 1`] = ` | ||
{project} | ||
{project}/node_modules/optional-ok | ||
{project}/node_modules/optional-wrong | ||
{project}/node_modules/peer-ok | ||
{project}/node_modules/peer-optional-ok | ||
{project}/node_modules/peer-optional-wrong | ||
{project}/node_modules/peer-wrong | ||
{project}/node_modules/prod-ok | ||
{project}/node_modules/prod-wrong | ||
` | ||
|
||
exports[`test/lib/ls.js TAP ignore missing optional deps human output > ls result 1`] = ` | ||
[email protected] {project} | ||
+-- unmet optional dependency optional-missing@1 | ||
+-- [email protected] | ||
+-- [email protected] invalid | ||
+-- unmet dependency peer-missing@1 | ||
+-- [email protected] | ||
+-- unmet optional dependency peer-optional-missing@1 | ||
+-- [email protected] | ||
+-- [email protected] invalid | ||
+-- [email protected] invalid | ||
+-- unmet dependency prod-missing@1 | ||
+-- [email protected] | ||
\`-- [email protected] invalid | ||
|
||
` | ||
|
||
exports[`test/lib/ls.js TAP ls --depth=0 > should output tree containing only top-level dependencies 1`] = ` | ||
[email protected] {CWD}/tap-testdir-ls-ls---depth-0 | ||
+-- [email protected] | ||
|
@@ -341,7 +381,7 @@ exports[`test/lib/ls.js TAP ls cycle deps with filter args > should print tree o | |
exports[`test/lib/ls.js TAP ls deduped missing dep > should output parseable signaling missing peer dep in problems 1`] = ` | ||
[email protected] {CWD}/tap-testdir-ls-ls-deduped-missing-dep | ||
+-- [email protected] | ||
| \`-- UNMET DEPENDENCY b@^1.0.0 deduped | ||
| \`-- UNMET DEPENDENCY b@^1.0.0 | ||
\`-- UNMET DEPENDENCY b@^1.0.0 | ||
|
||
` | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.