2020-10-02 17:52:19 -04:00
/ * I M P O R T A N T
* This snapshot file is auto - generated , but designed for humans .
* It should be checked into source control and tracked carefully .
* Re - generate by setting TAP _SNAPSHOT = 1 and running tests .
* Make sure to inspect the output below . Do not ignore changes !
* /
'use strict'
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ignore missing optional deps --json > ls --json problems 1 ` ] = `
2021-04-29 16:30:06 -04:00
Array [
2023-01-16 22:38:23 -05:00
"invalid: optional-wrong@3.2.1 {CWD}/prefix/node_modules/optional-wrong" ,
2021-04-29 16:30:06 -04:00
"missing: peer-missing@1, required by test-npm-ls-ignore-missing-optional@1.2.3" ,
2023-01-16 22:38:23 -05:00
"invalid: peer-optional-wrong@3.2.1 {CWD}/prefix/node_modules/peer-optional-wrong" ,
"invalid: peer-wrong@3.2.1 {CWD}/prefix/node_modules/peer-wrong" ,
2021-04-29 16:30:06 -04:00
"missing: prod-missing@1, required by test-npm-ls-ignore-missing-optional@1.2.3" ,
2023-01-16 22:38:23 -05:00
"invalid: prod-wrong@3.2.1 {CWD}/prefix/node_modules/prod-wrong" ,
2021-04-29 16:30:06 -04:00
]
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ignore missing optional deps --parseable > ls --parseable result 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / optional - ok
{ CWD } / prefix / node _modules / optional - wrong
{ CWD } / prefix / node _modules / peer - ok
{ CWD } / prefix / node _modules / peer - optional - ok
{ CWD } / prefix / node _modules / peer - optional - wrong
{ CWD } / prefix / node _modules / peer - wrong
{ CWD } / prefix / node _modules / prod - ok
{ CWD } / prefix / node _modules / prod - wrong
2021-04-29 16:30:06 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ignore missing optional deps human output > ls result 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls - ignore - missing - optional @ 1.2 . 3 { CWD } / prefix
+ -- UNMET OPTIONAL DEPENDENCY optional - missing @ 1
2021-04-29 16:30:06 -04:00
+ -- optional - ok @ 1.2 . 3
2021-06-24 21:39:48 +00:00
+ -- optional - wrong @ 3.2 . 1 invalid : "1" from the root project
2023-01-16 22:38:23 -05:00
+ -- UNMET DEPENDENCY peer - missing @ 1
2021-04-29 16:30:06 -04:00
+ -- peer - ok @ 1.2 . 3
2023-01-16 22:38:23 -05:00
+ -- UNMET OPTIONAL DEPENDENCY peer - optional - missing @ 1
2021-04-29 16:30:06 -04:00
+ -- peer - optional - ok @ 1.2 . 3
2021-06-24 21:39:48 +00:00
+ -- peer - optional - wrong @ 3.2 . 1 invalid : "1" from the root project
+ -- peer - wrong @ 3.2 . 1 invalid : "1" from the root project
2023-01-16 22:38:23 -05:00
+ -- UNMET DEPENDENCY prod - missing @ 1
2021-04-29 16:30:06 -04:00
+ -- prod - ok @ 1.2 . 3
2021-06-24 21:39:48 +00:00
\ ` -- prod-wrong@3.2.1 invalid: "1" from the root project
2021-04-29 16:30:06 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --depth=0 > should output tree containing only top-level dependencies 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2021-05-10 17:31:02 -04:00
+ -- chai @ 1.0 . 0
\ ` -- foo@1.0.0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --depth=1 > should output tree containing top-level deps and their deps only 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
+ -- a @ 1.0 . 0
| \ ` -- b@1.0.0
\ ` -- e@1.0.0
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --dev > should output tree containing dev deps 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- dev-dep@1.0.0
\ ` -- foo@1.0.0
2021-05-10 17:31:02 -04:00
\ ` -- dog@1.0.0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --link > should output tree containing linked deps 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2021-05-31 23:00:00 +00:00
\ ` -- linked-dep@1.0.0 -> ./linked-dep
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --long --depth=0 > should output tree containing top-level deps with descriptions 1 ` ] = `
2020-10-02 17:52:19 -04:00
test - npm - ls @ 1.0 . 0
2023-01-16 22:38:23 -05:00
| { CWD } / prefix
2021-11-04 20:42:47 +00:00
|
2021-05-10 17:31:02 -04:00
+ -- chai @ 1.0 . 0
2021-11-04 20:42:47 +00:00
|
2020-10-02 17:52:19 -04:00
+ -- dev - dep @ 1.0 . 0
| A DEV dep kind of dep
+ -- optional - dep @ 1.0 . 0
| Maybe a dep ?
+ -- peer - dep @ 1.0 . 0
| Peer - dep description here
\ ` -- prod-dep@1.0.0
A PROD dep kind of dep
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --long > should output tree info with descriptions 1 ` ] = `
2020-10-02 17:52:19 -04:00
test - npm - ls @ 1.0 . 0
2023-01-16 22:38:23 -05:00
| { CWD } / prefix
2021-11-04 20:42:47 +00:00
|
2021-05-10 17:31:02 -04:00
+ -- chai @ 1.0 . 0
2021-11-04 20:42:47 +00:00
|
2020-10-02 17:52:19 -04:00
+ -- dev - dep @ 1.0 . 0
| | A DEV dep kind of dep
| \ ` -- foo@1.0.0
2021-11-04 20:42:47 +00:00
| |
2021-05-10 17:31:02 -04:00
| \ ` -- dog@1.0.0
2021-11-04 20:42:47 +00:00
|
2020-10-02 17:52:19 -04:00
+ -- optional - dep @ 1.0 . 0
| Maybe a dep ?
+ -- peer - dep @ 1.0 . 0
| Peer - dep description here
\ ` -- prod-dep@1.0.0
| A PROD dep kind of dep
2021-05-10 17:31:02 -04:00
\ ` -- dog@2.0.0
2020-10-02 17:52:19 -04:00
A dep that bars
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable --depth=0 > should output tree containing only top-level dependencies 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / chai
{ CWD } / prefix / node _modules / foo
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable --depth=1 > should output parseable containing top-level deps and their deps only 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / chai
{ CWD } / prefix / node _modules / foo
{ CWD } / prefix / node _modules / dog
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable --dev > should output tree containing dev deps 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / dev - dep
{ CWD } / prefix / node _modules / foo
{ CWD } / prefix / node _modules / dog
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable --link > should output tree containing linked deps 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / linked - dep
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable --long --depth=0 > should output tree containing top-level deps with descriptions 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix : test - npm - ls @ 1.0 . 0
{ CWD } / prefix / node _modules / chai : chai @ 1.0 . 0
{ CWD } / prefix / node _modules / dev - dep : dev - dep @ 1.0 . 0
{ CWD } / prefix / node _modules / optional - dep : optional - dep @ 1.0 . 0
{ CWD } / prefix / node _modules / peer - dep : peer - dep @ 1.0 . 0
{ CWD } / prefix / node _modules / prod - dep : prod - dep @ 1.0 . 0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable --long > should output tree info with descriptions 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix : test - npm - ls @ 1.0 . 0
{ CWD } / prefix / node _modules / chai : chai @ 1.0 . 0
{ CWD } / prefix / node _modules / dev - dep : dev - dep @ 1.0 . 0
{ CWD } / prefix / node _modules / optional - dep : optional - dep @ 1.0 . 0
{ CWD } / prefix / node _modules / peer - dep : peer - dep @ 1.0 . 0
{ CWD } / prefix / node _modules / prod - dep : prod - dep @ 1.0 . 0
{ CWD } / prefix / node _modules / foo : foo @ 1.0 . 0
{ CWD } / prefix / node _modules / prod - dep / node _modules / dog : dog @ 2.0 . 0
{ CWD } / prefix / node _modules / dog : dog @ 1.0 . 0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable --long missing/invalid/extraneous > should output parseable result containing EXTRANEOUS/INVALID labels 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix : test - npm - ls @ 1.0 . 0
{ CWD } / prefix / node _modules / chai : chai @ 1.0 . 0 : EXTRANEOUS
{ CWD } / prefix / node _modules / foo : foo @ 1.0 . 0 : INVALID
{ CWD } / prefix / node _modules / dog : dog @ 1.0 . 0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable --long print symlink target location > should output parseable results with symlink targets 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix : test - npm - ls @ 1.0 . 0
{ CWD } / prefix / node _modules / chai : chai @ 1.0 . 0
{ CWD } / prefix / node _modules / dev - dep : dev - dep @ 1.0 . 0
{ CWD } / prefix / node _modules / linked - dep : linked - dep @ 1.0 . 0 : { CWD } / prefix / linked - dep
{ CWD } / prefix / node _modules / optional - dep : optional - dep @ 1.0 . 0
{ CWD } / prefix / node _modules / peer - dep : peer - dep @ 1.0 . 0
{ CWD } / prefix / node _modules / prod - dep : prod - dep @ 1.0 . 0
{ CWD } / prefix / node _modules / foo : foo @ 1.0 . 0
{ CWD } / prefix / node _modules / prod - dep / node _modules / dog : dog @ 2.0 . 0
{ CWD } / prefix / node _modules / dog : dog @ 1.0 . 0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable --long with extraneous deps > should output long parseable output with extraneous info 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix : test - npm - ls @ 1.0 . 0
{ CWD } / prefix / node _modules / chai : chai @ 1.0 . 0 : EXTRANEOUS
{ CWD } / prefix / node _modules / foo : foo @ 1.0 . 0
{ CWD } / prefix / node _modules / dog : dog @ 1.0 . 0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable --production > should output tree containing production deps 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / chai
{ CWD } / prefix / node _modules / optional - dep
{ CWD } / prefix / node _modules / prod - dep
{ CWD } / prefix / node _modules / prod - dep / node _modules / dog
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable cycle deps > should print tree output omitting deduped ref 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / a
{ CWD } / prefix / node _modules / b
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable default --depth value should be 0 > should output parseable output containing only top-level dependencies 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / chai
{ CWD } / prefix / node _modules / foo
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable empty location > should print empty result 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable extraneous deps > should output containing problems info 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / chai
{ CWD } / prefix / node _modules / foo
{ CWD } / prefix / node _modules / dog
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable from and resolved properties > should not be printed in tree output 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / simple - output
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable global > should print parseable output for global deps 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / global
{ CWD } / global / node _modules / a
{ CWD } / global / node _modules / b
{ CWD } / global / node _modules / b / node _modules / c
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable json read problems > should print empty result 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable missing package.json > should output parseable missing name/version of top-level package 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / chai
{ CWD } / prefix / node _modules / dog
{ CWD } / prefix / node _modules / foo
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable missing/invalid/extraneous > should output parseable containing top-level deps and their deps only 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / chai
{ CWD } / prefix / node _modules / foo
{ CWD } / prefix / node _modules / dog
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable no args > should output parseable representation of dependencies structure 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / chai
{ CWD } / prefix / node _modules / foo
{ CWD } / prefix / node _modules / dog
2020-10-02 17:52:19 -04:00
`
2022-08-17 21:52:05 -07:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable overridden dep > should contain overridden outout 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix : test - overridden @ 1.0 . 0
{ CWD } / prefix / node _modules / foo : foo @ 1.0 . 0
{ CWD } / prefix / node _modules / bar : bar @ 1.0 . 0 : OVERRIDDEN
2022-08-17 21:52:05 -07:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable resolved points to git ref > should output tree containing git refs 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / abbrev
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable unmet optional dep > should output parseable with empty entry for missing optional deps 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / chai
{ CWD } / prefix / node _modules / dev - dep
{ CWD } / prefix / node _modules / optional - dep
{ CWD } / prefix / node _modules / peer - dep
{ CWD } / prefix / node _modules / prod - dep
{ CWD } / prefix / node _modules / foo
{ CWD } / prefix / node _modules / prod - dep / node _modules / dog
{ CWD } / prefix / node _modules / dog
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable unmet peer dep > should output parseable signaling missing peer dep in problems 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / chai
{ CWD } / prefix / node _modules / dev - dep
{ CWD } / prefix / node _modules / optional - dep
{ CWD } / prefix / node _modules / peer - dep
{ CWD } / prefix / node _modules / prod - dep
{ CWD } / prefix / node _modules / foo
{ CWD } / prefix / node _modules / prod - dep / node _modules / dog
{ CWD } / prefix / node _modules / dog
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable using aliases > should output tree containing aliases 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
{ CWD } / prefix / node _modules / a
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable with filter arg > should output parseable contaning only occurrences of filtered by package 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix / node _modules / chai
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable with filter arg nested dep > should output parseable contaning only occurrences of filtered package 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix / node _modules / dog
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable with missing filter arg > should output parseable output containing no dependencies info 1 ` ] = `
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --parseable with multiple filter args > should output parseable contaning only occurrences of multiple filtered packages and their ancestors 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix / node _modules / chai
{ CWD } / prefix / node _modules / dog
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls --production > should output tree containing production deps 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2021-05-10 17:31:02 -04:00
+ -- chai @ 1.0 . 0
2020-10-02 17:52:19 -04:00
+ -- optional - dep @ 1.0 . 0
\ ` -- prod-dep@1.0.0
2021-05-10 17:31:02 -04:00
\ ` -- dog@2.0.0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls broken resolved field > should NOT print git refs in output tree 1 ` ] = `
2023-01-16 22:38:23 -05:00
npm - broken - resolved - field - test @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- a@1.0.1
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls colored output > should output tree containing color info 1 ` ] = `
2023-01-16 22:38:23 -05:00
[ 0 mtest - npm - ls @ 1.0 . 0 { CWD } / prefix [ 0 m
2024-04-30 23:53:22 -07:00
[ 0 m + -- chai @ 1.0 . 0 [ 31 mextraneous [ 39 m [ 0 m
[ 0 m + -- foo @ 1.0 . 0 [ 31 minvalid : "^2.0.0" from the root project [ 39 m [ 0 m
2021-05-10 17:31:02 -04:00
[ 0 m | \ ` -- dog@1.0.0 [0m
2024-04-30 23:53:22 -07:00
[ 0 m \ ` -- [31mUNMET DEPENDENCY [39m ipsum@^1.0.0 [0m
2020-10-02 17:52:19 -04:00
[ 0 m [ 0 m
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls cycle deps > should print tree output containing deduped ref 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- a@1.0.0
\ ` -- b@1.0.0
\ ` -- a@1.0.0 deduped
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls cycle deps with filter args > should print tree output containing deduped ref 1 ` ] = `
2023-01-16 22:38:23 -05:00
[ 0 mtest - npm - ls @ 1.0 . 0 { CWD } / prefix [ 0 m
2024-04-30 23:53:22 -07:00
[ 0 m \ ` -- [33ma@1.0.0 [39m [0m
2020-10-02 17:52:19 -04:00
[ 0 m \ ` -- b@1.0.0 [0m
2024-04-30 23:53:22 -07:00
[ 0 m \ ` -- [33ma@1.0.0 [39m [2mdeduped [22m [0m
2020-10-02 17:52:19 -04:00
[ 0 m [ 0 m
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls deduped missing dep > should output parseable signaling missing peer dep in problems 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
+ -- a @ 1.0 . 0
2021-04-29 16:30:06 -04:00
| \ ` -- UNMET DEPENDENCY b@^1.0.0
2020-10-02 17:52:19 -04:00
\ ` -- UNMET DEPENDENCY b@^1.0.0
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls default --depth value should be 0 > should output tree containing only top-level dependencies 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2021-05-10 17:31:02 -04:00
+ -- chai @ 1.0 . 0
\ ` -- foo@1.0.0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls empty location > should print empty result 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- (empty)
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls extraneous deps > should output containing problems info 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2021-05-10 17:31:02 -04:00
+ -- chai @ 1.0 . 0 extraneous
\ ` -- foo@1.0.0
\ ` -- dog@1.0.0
2020-10-02 17:52:19 -04:00
`
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/ls.js TAP ls filter pkg arg using depth option should list a in top-level only > output 1 ` ] = `
test - pkg - arg - filter - with - depth - opt @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- a@1.0.0
`
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/ls.js TAP ls filter pkg arg using depth option should print empty results msg > output 1 ` ] = `
test - pkg - arg - filter - with - depth - opt @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- (empty)
`
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/ls.js TAP ls filter pkg arg using depth option should print expected result > output 1 ` ] = `
test - pkg - arg - filter - with - depth - opt @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- b@1.0.0
\ ` -- c@1.0.0
\ ` -- d@1.0.0
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls filtering by child of missing dep > should print tree and not duplicate child of missing items 1 ` ] = `
2023-01-16 22:38:23 -05:00
filter - by - child - of - missing - dep @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
+ -- b @ 1.0 . 0 extraneous
| \ ` -- c@1.0.0 deduped
+ -- c @ 1.0 . 0 extraneous
\ ` -- d@1.0.0 extraneous
\ ` -- c@2.0.0 extraneous
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls from and resolved properties > should not be printed in tree output 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- simple-output@2.1.1
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls global > should print tree and not mark top-level items extraneous 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / global
2020-10-02 17:52:19 -04:00
+ -- a @ 1.0 . 0
\ ` -- b@1.0.0
\ ` -- c@1.0.0
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls invalid deduped dep > should output tree signaling mismatching peer dep in problems 1 ` ] = `
2023-01-16 22:38:23 -05:00
[ 0 minvalid - deduped - dep @ 1.0 . 0 { CWD } / prefix [ 0 m
2020-10-02 17:52:19 -04:00
[ 0 m + -- a @ 1.0 . 0 [ 0 m
2024-04-30 23:53:22 -07:00
[ 0 m | \ ` -- b@1.0.0 [2mdeduped [22m [31minvalid: "^2.0.0" from the root project, "^2.0.0" from node_modules/a [39m [0m
[ 0 m \ ` -- b@1.0.0 [31minvalid: "^2.0.0" from the root project, "^2.0.0" from node_modules/a [39m [0m
2020-10-02 17:52:19 -04:00
[ 0 m [ 0 m
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls invalid peer dep > should output tree signaling mismatching peer dep in problems 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2021-05-10 17:31:02 -04:00
+ -- chai @ 1.0 . 0
2020-10-02 17:52:19 -04:00
+ -- dev - dep @ 1.0 . 0
| \ ` -- foo@1.0.0
2021-05-10 17:31:02 -04:00
| \ ` -- dog@1.0.0
2020-10-02 17:52:19 -04:00
+ -- optional - dep @ 1.0 . 0
2021-06-24 21:39:48 +00:00
+ -- peer - dep @ 1.0 . 0 invalid : "^2.0.0" from the root project
2020-10-02 17:52:19 -04:00
\ ` -- prod-dep@1.0.0
2021-05-10 17:31:02 -04:00
\ ` -- dog@2.0.0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls json read problems > should print empty result 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- (empty)
`
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/ls.js TAP ls loading a tree containing workspaces should filter by parent folder workspace config > output 1 ` ] = `
workspaces - tree @ 1.0 . 0 { CWD } / prefix
2021-05-31 23:00:00 +00:00
+ -- e @ 1.0 . 0 - > . / group / e
\ ` -- f@1.0.0 -> ./group/f
2021-05-20 15:54:50 -04:00
`
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/ls.js TAP ls loading a tree containing workspaces should filter single workspace > output 1 ` ] = `
workspaces - tree @ 1.0 . 0 { CWD } / prefix
2021-05-31 23:00:00 +00:00
+ -- a @ 1.0 . 0 - > . / a
| \ ` -- d@1.0.0 deduped -> ./d
\ ` -- d@1.0.0 -> ./d
2021-05-20 15:54:50 -04:00
`
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/ls.js TAP ls loading a tree containing workspaces should filter using workspace config > output 1 ` ] = `
workspaces - tree @ 1.0 . 0 { CWD } / prefix
2021-05-31 23:00:00 +00:00
\ ` -- a@1.0.0 -> ./a
2021-06-17 18:59:38 +00:00
+ -- baz @ 1.0 . 0
2021-05-20 15:54:50 -04:00
+ -- c @ 1.0 . 0
2021-05-31 23:00:00 +00:00
\ ` -- d@1.0.0 -> ./d
2021-05-20 15:54:50 -04:00
\ ` -- foo@1.1.1
\ ` -- bar@1.0.0
2020-10-02 17:52:19 -04:00
`
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/ls.js TAP ls loading a tree containing workspaces should inlude root and specified workspace > output 1 ` ] = `
workspaces - tree @ 1.0 . 0 { CWD } / prefix
2022-03-03 21:38:08 +00:00
+ -- d @ 1.0 . 0 - > . / d
| \ ` -- foo@1.1.1
| \ ` -- bar@1.0.0
\ ` -- pacote@1.0.0
`
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/ls.js TAP ls loading a tree containing workspaces should list --all workspaces properly > output 1 ` ] = `
workspaces - tree @ 1.0 . 0 { CWD } / prefix
2021-05-31 23:00:00 +00:00
+ -- a @ 1.0 . 0 - > . / a
2021-06-17 18:59:38 +00:00
| + -- baz @ 1.0 . 0
| + -- c @ 1.0 . 0
| \ ` -- d@1.0.0 deduped -> ./d
+ -- b @ 1.0 . 0 - > . / b
+ -- d @ 1.0 . 0 - > . / d
| \ ` -- foo@1.1.1
| \ ` -- bar@1.0.0
+ -- e @ 1.0 . 0 - > . / group / e
2022-03-03 21:38:08 +00:00
+ -- f @ 1.0 . 0 - > . / group / f
\ ` -- pacote@1.0.0
2021-06-17 18:59:38 +00:00
`
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/ls.js TAP ls loading a tree containing workspaces should list only prod deps of workspaces > output 1 ` ] = `
workspaces - tree @ 1.0 . 0 { CWD } / prefix
2021-06-17 18:59:38 +00:00
+ -- a @ 1.0 . 0 - > . / a
2021-05-20 15:54:50 -04:00
| + -- c @ 1.0 . 0
2021-05-31 23:00:00 +00:00
| \ ` -- d@1.0.0 deduped -> ./d
+ -- b @ 1.0 . 0 - > . / b
+ -- d @ 1.0 . 0 - > . / d
2021-05-20 15:54:50 -04:00
| \ ` -- foo@1.1.1
| \ ` -- bar@1.0.0
2021-05-31 23:00:00 +00:00
+ -- e @ 1.0 . 0 - > . / group / e
2022-03-03 21:38:08 +00:00
+ -- f @ 1.0 . 0 - > . / group / f
\ ` -- pacote@1.0.0
2021-05-20 15:54:50 -04:00
`
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/ls.js TAP ls loading a tree containing workspaces should list workspaces properly with default configs > output 1 ` ] = `
[ 0 mworkspaces - tree @ 1.0 . 0 { CWD } / prefix [ 0 m
2024-04-30 23:53:22 -07:00
[ 0 m + -- [ 94 ma @ 1.0 . 0 [ 39 m - > . / a [ 0 m
2021-06-17 18:59:38 +00:00
[ 0 m | + -- baz @ 1.0 . 0 [ 0 m
2021-05-20 15:54:50 -04:00
[ 0 m | + -- c @ 1.0 . 0 [ 0 m
2024-04-30 23:53:22 -07:00
[ 0 m | \ ` -- d@1.0.0 [2mdeduped [22m -> ./d [0m
[ 0 m + -- [ 94 mb @ 1.0 . 0 [ 39 m - > . / b [ 0 m
[ 0 m + -- [ 94 md @ 1.0 . 0 [ 39 m - > . / d [ 0 m
2021-05-20 15:54:50 -04:00
[ 0 m | \ ` -- foo@1.1.1 [0m
2024-04-30 23:53:22 -07:00
[ 0 m + -- [ 94 me @ 1.0 . 0 [ 39 m - > . / group / e [ 0 m
[ 0 m + -- [ 94 mf @ 1.0 . 0 [ 39 m - > . / group / f [ 0 m
2022-03-03 21:38:08 +00:00
[ 0 m \ ` -- pacote@1.0.0 [0m
2021-05-20 15:54:50 -04:00
[ 0 m [ 0 m
`
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/ls.js TAP ls loading a tree containing workspaces should not list workspaces with --no-workspaces > output 1 ` ] = `
[ 0 mworkspaces - tree @ 1.0 . 0 { CWD } / prefix [ 0 m
2022-03-03 21:38:08 +00:00
[ 0 m \ ` -- pacote@1.0.0 [0m
2021-10-14 22:17:47 +00:00
[ 0 m [ 0 m
`
2023-01-16 22:38:23 -05:00
exports [ ` test/lib/commands/ls.js TAP ls loading a tree containing workspaces should print all tree and filter by dep within only the ws subtree > output 1 ` ] = `
workspaces - tree @ 1.0 . 0 { CWD } / prefix
2021-05-31 23:00:00 +00:00
\ ` -- d@1.0.0 -> ./d
2021-05-20 15:54:50 -04:00
\ ` -- foo@1.1.1
\ ` -- bar@1.0.0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls missing package.json > should output tree missing name/version of top-level package 1 ` ] = `
2023-01-16 22:38:23 -05:00
{ CWD } / prefix
2021-05-10 17:31:02 -04:00
+ -- chai @ 1.0 . 0 extraneous
+ -- dog @ 1.0 . 0 extraneous
\ ` -- foo@1.0.0 extraneous
\ ` -- dog@1.0.0 deduped
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls missing/invalid/extraneous > should output tree containing missing, invalid, extraneous labels 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2021-05-10 17:31:02 -04:00
+ -- chai @ 1.0 . 0 extraneous
2021-06-24 21:39:48 +00:00
+ -- foo @ 1.0 . 0 invalid : "^2.0.0" from the root project
2021-05-10 17:31:02 -04:00
| \ ` -- dog@1.0.0
\ ` -- UNMET DEPENDENCY ipsum@^1.0.0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls no args > should output tree representation of dependencies structure 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2021-05-10 17:31:02 -04:00
+ -- chai @ 1.0 . 0
\ ` -- foo@1.0.0
\ ` -- dog@1.0.0
2020-10-02 17:52:19 -04:00
`
2022-08-17 21:52:05 -07:00
exports [ ` test/lib/commands/ls.js TAP ls overridden dep > should contain overridden outout 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - overridden @ 1.0 . 0 { CWD } / prefix
2022-08-17 21:52:05 -07:00
\ ` -- foo@1.0.0
\ ` -- bar@1.0.0 overridden
`
exports [ ` test/lib/commands/ls.js TAP ls overridden dep w/ color > should contain overridden outout 1 ` ] = `
2023-01-16 22:38:23 -05:00
[ 0 mtest - overridden @ 1.0 . 0 { CWD } / prefix [ 0 m
2022-08-17 21:52:05 -07:00
[ 0 m \ ` -- foo@1.0.0 [0m
2024-04-30 23:53:22 -07:00
[ 0 m \ ` -- bar@1.0.0 [2moverridden [22m [0m
2022-08-17 21:52:05 -07:00
[ 0 m [ 0 m
`
2020-10-02 17:52:19 -04:00
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls print deduped symlinks > should output tree containing linked deps 1 ` ] = `
2023-01-16 22:38:23 -05:00
print - deduped - symlinks @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
+ -- a @ 1.0 . 0
2021-05-31 23:00:00 +00:00
| \ ` -- b@1.0.0 deduped -> ./b
\ ` -- b@1.0.0 -> ./b
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls resolved points to git ref > should output tree containing git refs 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- abbrev@1.1.1 (git+ssh://git@github.com/isaacs/abbrev-js.git#b8f3a2fc0c3bb8ffd8b0d0072cc6b5a3667e963c)
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls unmet optional dep > should output tree with empty entry for missing optional deps 1 ` ] = `
2023-01-16 22:38:23 -05:00
[ 0 mtest - npm - ls @ 1.0 . 0 { CWD } / prefix [ 0 m
2021-05-10 17:31:02 -04:00
[ 0 m + -- chai @ 1.0 . 0 [ 0 m
2020-10-02 17:52:19 -04:00
[ 0 m + -- dev - dep @ 1.0 . 0 [ 0 m
[ 0 m | \ ` -- foo@1.0.0 [0m
2021-05-10 17:31:02 -04:00
[ 0 m | \ ` -- dog@1.0.0 [0m
2024-04-30 23:53:22 -07:00
[ 0 m + -- [ 33 mUNMET OPTIONAL DEPENDENCY [ 39 m missing - optional - dep @ ^ 1.0 . 0 [ 0 m
[ 0 m + -- optional - dep @ 1.0 . 0 [ 31 minvalid : "^2.0.0" from the root project [ 39 m [ 0 m
2020-10-02 17:52:19 -04:00
[ 0 m + -- peer - dep @ 1.0 . 0 [ 0 m
[ 0 m \ ` -- prod-dep@1.0.0 [0m
2021-05-10 17:31:02 -04:00
[ 0 m \ ` -- dog@2.0.0 [0m
2020-10-02 17:52:19 -04:00
[ 0 m [ 0 m
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls unmet peer dep > should output tree signaling missing peer dep in problems 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- UNMET DEPENDENCY peer-dep@*
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls using aliases > should output tree containing aliases 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- a@npm:b@1.0.0
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls with args and dedupe entries > should print tree output containing deduped ref 1 ` ] = `
2023-01-16 22:38:23 -05:00
[ 0 mdedupe - entries @ 1.0 . 0 { CWD } / prefix [ 0 m
2020-10-02 17:52:19 -04:00
[ 0 m + -- @ npmcli / a @ 1.0 . 0 [ 0 m
2024-04-30 23:53:22 -07:00
[ 0 m | \ ` -- [33m@npmcli/b@1.1.2 [39m [2mdeduped [22m [0m
[ 0 m + -- [ 33 m @ npmcli / b @ 1.1 . 2 [ 39 m [ 0 m
2020-10-02 17:52:19 -04:00
[ 0 m \ ` -- @npmcli/c@1.0.0 [0m
2024-04-30 23:53:22 -07:00
[ 0 m \ ` -- [33m@npmcli/b@1.1.2 [39m [2mdeduped [22m [0m
2020-10-02 17:52:19 -04:00
[ 0 m [ 0 m
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls with args and different order of items > should print tree output containing deduped ref 1 ` ] = `
2023-01-16 22:38:23 -05:00
dedupe - entries @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
+ -- @ npmcli / a @ 1.0 . 0
| \ ` -- @npmcli/c@1.0.0 deduped
+ -- @ npmcli / b @ 1.1 . 2
| \ ` -- @npmcli/c@1.0.0 deduped
\ ` -- @npmcli/c@1.0.0
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls with dot filter arg > should output tree contaning only occurrences of filtered by package and colored output 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- (empty)
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls with filter arg > should output tree contaning only occurrences of filtered by package and colored output 1 ` ] = `
2023-01-16 22:38:23 -05:00
[ 0 mtest - npm - ls @ 1.0 . 0 { CWD } / prefix [ 0 m
2024-04-30 23:53:22 -07:00
[ 0 m \ ` -- [33mchai@1.0.0 [39m [0m
2020-10-02 17:52:19 -04:00
[ 0 m [ 0 m
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls with filter arg nested dep > should output tree contaning only occurrences of filtered package and its ancestors 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- foo@1.0.0
2021-05-10 17:31:02 -04:00
\ ` -- dog@1.0.0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls with missing filter arg > should output tree containing no dependencies info 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
\ ` -- (empty)
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls with multiple filter args > should output tree contaning only occurrences of multiple filtered packages and their ancestors 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2021-05-10 17:31:02 -04:00
+ -- chai @ 1.0 . 0
\ ` -- foo@1.0.0
\ ` -- dog@1.0.0
2020-10-02 17:52:19 -04:00
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls with no args dedupe entries > should print tree output containing deduped ref 1 ` ] = `
2023-01-16 22:38:23 -05:00
dedupe - entries @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
+ -- @ npmcli / a @ 1.0 . 0
| \ ` -- @npmcli/b@1.1.2 deduped
+ -- @ npmcli / b @ 1.1 . 2
\ ` -- @npmcli/c@1.0.0
\ ` -- @npmcli/b@1.1.2 deduped
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP ls with no args dedupe entries and not displaying all > should print tree output containing deduped ref 1 ` ] = `
2023-01-16 22:38:23 -05:00
dedupe - entries @ 1.0 . 0 { CWD } / prefix
2020-10-02 17:52:19 -04:00
+ -- @ npmcli / a @ 1.0 . 0
+ -- @ npmcli / b @ 1.1 . 2
\ ` -- @npmcli/c@1.0.0
`
2021-06-24 21:39:48 +00:00
2022-08-04 21:23:58 -07:00
exports [ ` test/lib/commands/ls.js TAP ls workspace and missing optional dep > should omit missing optional dep 1 ` ] = `
2023-01-16 22:38:23 -05:00
root @ { CWD } / prefix
2022-08-04 21:23:58 -07:00
+ -- baz @ 1.0 . 0 - > . / baz
\ ` -- foo@1.0.0
`
2021-11-04 20:42:47 +00:00
exports [ ` test/lib/commands/ls.js TAP show multiple invalid reasons > ls result 1 ` ] = `
2023-01-16 22:38:23 -05:00
test - npm - ls @ 1.0 . 0 { CWD } / prefix
2021-06-24 21:39:48 +00:00
+ -- cat @ 1.0 . 0 invalid : "^2.0.0" from the root project
| \ ` -- dog@1.0.0 deduped invalid: "^1.2.3" from the root project, "^2.0.0" from node_modules/cat
+ -- chai @ 1.0 . 0 extraneous
| \ ` -- dog@1.0.0 deduped invalid: "^1.2.3" from the root project, "^2.0.0" from node_modules/cat, "2.x" from node_modules/chai
\ ` -- dog@1.0.0 invalid: "^1.2.3" from the root project, "^2.0.0" from node_modules/cat, "2.x" from node_modules/chai
\ ` -- cat@1.0.0 deduped invalid: "^2.0.0" from the root project
`