1/* IMPORTANT 2 * This snapshot file is auto-generated, but designed for humans. 3 * It should be checked into source control and tracked carefully. 4 * Re-generate by setting TAP_SNAPSHOT=1 and running tests. 5 * Make sure to inspect the output below. Do not ignore changes! 6 */ 7'use strict' 8exports[`test/lib/commands/ls.js TAP ignore missing optional deps --json > ls --json problems 1`] = ` 9Array [ 10 "invalid: optional-wrong@3.2.1 {CWD}/prefix/node_modules/optional-wrong", 11 "missing: peer-missing@1, required by test-npm-ls-ignore-missing-optional@1.2.3", 12 "invalid: peer-optional-wrong@3.2.1 {CWD}/prefix/node_modules/peer-optional-wrong", 13 "invalid: peer-wrong@3.2.1 {CWD}/prefix/node_modules/peer-wrong", 14 "missing: prod-missing@1, required by test-npm-ls-ignore-missing-optional@1.2.3", 15 "invalid: prod-wrong@3.2.1 {CWD}/prefix/node_modules/prod-wrong", 16] 17` 18 19exports[`test/lib/commands/ls.js TAP ignore missing optional deps --parseable > ls --parseable result 1`] = ` 20{CWD}/prefix 21{CWD}/prefix/node_modules/optional-ok 22{CWD}/prefix/node_modules/optional-wrong 23{CWD}/prefix/node_modules/peer-ok 24{CWD}/prefix/node_modules/peer-optional-ok 25{CWD}/prefix/node_modules/peer-optional-wrong 26{CWD}/prefix/node_modules/peer-wrong 27{CWD}/prefix/node_modules/prod-ok 28{CWD}/prefix/node_modules/prod-wrong 29` 30 31exports[`test/lib/commands/ls.js TAP ignore missing optional deps human output > ls result 1`] = ` 32test-npm-ls-ignore-missing-optional@1.2.3 {CWD}/prefix 33+-- UNMET OPTIONAL DEPENDENCY optional-missing@1 34+-- optional-ok@1.2.3 35+-- optional-wrong@3.2.1 invalid: "1" from the root project 36+-- UNMET DEPENDENCY peer-missing@1 37+-- peer-ok@1.2.3 38+-- UNMET OPTIONAL DEPENDENCY peer-optional-missing@1 39+-- peer-optional-ok@1.2.3 40+-- peer-optional-wrong@3.2.1 invalid: "1" from the root project 41+-- peer-wrong@3.2.1 invalid: "1" from the root project 42+-- UNMET DEPENDENCY prod-missing@1 43+-- prod-ok@1.2.3 44\`-- prod-wrong@3.2.1 invalid: "1" from the root project 45 46` 47 48exports[`test/lib/commands/ls.js TAP ls --depth=0 > should output tree containing only top-level dependencies 1`] = ` 49test-npm-ls@1.0.0 {CWD}/prefix 50+-- chai@1.0.0 51\`-- foo@1.0.0 52 53` 54 55exports[`test/lib/commands/ls.js TAP ls --depth=1 > should output tree containing top-level deps and their deps only 1`] = ` 56test-npm-ls@1.0.0 {CWD}/prefix 57+-- a@1.0.0 58| \`-- b@1.0.0 59\`-- e@1.0.0 60 61` 62 63exports[`test/lib/commands/ls.js TAP ls --dev > should output tree containing dev deps 1`] = ` 64test-npm-ls@1.0.0 {CWD}/prefix 65\`-- dev-dep@1.0.0 66 \`-- foo@1.0.0 67 \`-- dog@1.0.0 68 69` 70 71exports[`test/lib/commands/ls.js TAP ls --link > should output tree containing linked deps 1`] = ` 72test-npm-ls@1.0.0 {CWD}/prefix 73\`-- linked-dep@1.0.0 -> ./linked-dep 74 75` 76 77exports[`test/lib/commands/ls.js TAP ls --long --depth=0 > should output tree containing top-level deps with descriptions 1`] = ` 78test-npm-ls@1.0.0 79| {CWD}/prefix 80| 81+-- chai@1.0.0 82| 83+-- dev-dep@1.0.0 84| A DEV dep kind of dep 85+-- optional-dep@1.0.0 86| Maybe a dep? 87+-- peer-dep@1.0.0 88| Peer-dep description here 89\`-- prod-dep@1.0.0 90 A PROD dep kind of dep 91 92` 93 94exports[`test/lib/commands/ls.js TAP ls --long > should output tree info with descriptions 1`] = ` 95test-npm-ls@1.0.0 96| {CWD}/prefix 97| 98+-- chai@1.0.0 99| 100+-- dev-dep@1.0.0 101| | A DEV dep kind of dep 102| \`-- foo@1.0.0 103| | 104| \`-- dog@1.0.0 105| 106+-- optional-dep@1.0.0 107| Maybe a dep? 108+-- peer-dep@1.0.0 109| Peer-dep description here 110\`-- prod-dep@1.0.0 111 | A PROD dep kind of dep 112 \`-- dog@2.0.0 113 A dep that bars 114 115` 116 117exports[`test/lib/commands/ls.js TAP ls --parseable --depth=0 > should output tree containing only top-level dependencies 1`] = ` 118{CWD}/prefix 119{CWD}/prefix/node_modules/chai 120{CWD}/prefix/node_modules/foo 121` 122 123exports[`test/lib/commands/ls.js TAP ls --parseable --depth=1 > should output parseable containing top-level deps and their deps only 1`] = ` 124{CWD}/prefix 125{CWD}/prefix/node_modules/chai 126{CWD}/prefix/node_modules/foo 127{CWD}/prefix/node_modules/dog 128` 129 130exports[`test/lib/commands/ls.js TAP ls --parseable --dev > should output tree containing dev deps 1`] = ` 131{CWD}/prefix 132{CWD}/prefix/node_modules/dev-dep 133{CWD}/prefix/node_modules/foo 134{CWD}/prefix/node_modules/dog 135` 136 137exports[`test/lib/commands/ls.js TAP ls --parseable --link > should output tree containing linked deps 1`] = ` 138{CWD}/prefix 139{CWD}/prefix/node_modules/linked-dep 140` 141 142exports[`test/lib/commands/ls.js TAP ls --parseable --long --depth=0 > should output tree containing top-level deps with descriptions 1`] = ` 143{CWD}/prefix:test-npm-ls@1.0.0 144{CWD}/prefix/node_modules/chai:chai@1.0.0 145{CWD}/prefix/node_modules/dev-dep:dev-dep@1.0.0 146{CWD}/prefix/node_modules/optional-dep:optional-dep@1.0.0 147{CWD}/prefix/node_modules/peer-dep:peer-dep@1.0.0 148{CWD}/prefix/node_modules/prod-dep:prod-dep@1.0.0 149` 150 151exports[`test/lib/commands/ls.js TAP ls --parseable --long > should output tree info with descriptions 1`] = ` 152{CWD}/prefix:test-npm-ls@1.0.0 153{CWD}/prefix/node_modules/chai:chai@1.0.0 154{CWD}/prefix/node_modules/dev-dep:dev-dep@1.0.0 155{CWD}/prefix/node_modules/optional-dep:optional-dep@1.0.0 156{CWD}/prefix/node_modules/peer-dep:peer-dep@1.0.0 157{CWD}/prefix/node_modules/prod-dep:prod-dep@1.0.0 158{CWD}/prefix/node_modules/foo:foo@1.0.0 159{CWD}/prefix/node_modules/prod-dep/node_modules/dog:dog@2.0.0 160{CWD}/prefix/node_modules/dog:dog@1.0.0 161` 162 163exports[`test/lib/commands/ls.js TAP ls --parseable --long missing/invalid/extraneous > should output parseable result containing EXTRANEOUS/INVALID labels 1`] = ` 164{CWD}/prefix:test-npm-ls@1.0.0 165{CWD}/prefix/node_modules/chai:chai@1.0.0:EXTRANEOUS 166{CWD}/prefix/node_modules/foo:foo@1.0.0:INVALID 167{CWD}/prefix/node_modules/dog:dog@1.0.0 168` 169 170exports[`test/lib/commands/ls.js TAP ls --parseable --long print symlink target location > should output parseable results with symlink targets 1`] = ` 171{CWD}/prefix:test-npm-ls@1.0.0 172{CWD}/prefix/node_modules/chai:chai@1.0.0 173{CWD}/prefix/node_modules/dev-dep:dev-dep@1.0.0 174{CWD}/prefix/node_modules/linked-dep:linked-dep@1.0.0:{CWD}/prefix/linked-dep 175{CWD}/prefix/node_modules/optional-dep:optional-dep@1.0.0 176{CWD}/prefix/node_modules/peer-dep:peer-dep@1.0.0 177{CWD}/prefix/node_modules/prod-dep:prod-dep@1.0.0 178{CWD}/prefix/node_modules/foo:foo@1.0.0 179{CWD}/prefix/node_modules/prod-dep/node_modules/dog:dog@2.0.0 180{CWD}/prefix/node_modules/dog:dog@1.0.0 181` 182 183exports[`test/lib/commands/ls.js TAP ls --parseable --long with extraneous deps > should output long parseable output with extraneous info 1`] = ` 184{CWD}/prefix:test-npm-ls@1.0.0 185{CWD}/prefix/node_modules/chai:chai@1.0.0:EXTRANEOUS 186{CWD}/prefix/node_modules/foo:foo@1.0.0 187{CWD}/prefix/node_modules/dog:dog@1.0.0 188` 189 190exports[`test/lib/commands/ls.js TAP ls --parseable --production > should output tree containing production deps 1`] = ` 191{CWD}/prefix 192{CWD}/prefix/node_modules/chai 193{CWD}/prefix/node_modules/optional-dep 194{CWD}/prefix/node_modules/prod-dep 195{CWD}/prefix/node_modules/prod-dep/node_modules/dog 196` 197 198exports[`test/lib/commands/ls.js TAP ls --parseable cycle deps > should print tree output omitting deduped ref 1`] = ` 199{CWD}/prefix 200{CWD}/prefix/node_modules/a 201{CWD}/prefix/node_modules/b 202` 203 204exports[`test/lib/commands/ls.js TAP ls --parseable default --depth value should be 0 > should output parseable output containing only top-level dependencies 1`] = ` 205{CWD}/prefix 206{CWD}/prefix/node_modules/chai 207{CWD}/prefix/node_modules/foo 208` 209 210exports[`test/lib/commands/ls.js TAP ls --parseable empty location > should print empty result 1`] = ` 211{CWD}/prefix 212` 213 214exports[`test/lib/commands/ls.js TAP ls --parseable extraneous deps > should output containing problems info 1`] = ` 215{CWD}/prefix 216{CWD}/prefix/node_modules/chai 217{CWD}/prefix/node_modules/foo 218{CWD}/prefix/node_modules/dog 219` 220 221exports[`test/lib/commands/ls.js TAP ls --parseable from and resolved properties > should not be printed in tree output 1`] = ` 222{CWD}/prefix 223{CWD}/prefix/node_modules/simple-output 224` 225 226exports[`test/lib/commands/ls.js TAP ls --parseable global > should print parseable output for global deps 1`] = ` 227{CWD}/global 228{CWD}/global/node_modules/a 229{CWD}/global/node_modules/b 230{CWD}/global/node_modules/b/node_modules/c 231` 232 233exports[`test/lib/commands/ls.js TAP ls --parseable json read problems > should print empty result 1`] = ` 234{CWD}/prefix 235` 236 237exports[`test/lib/commands/ls.js TAP ls --parseable missing package.json > should output parseable missing name/version of top-level package 1`] = ` 238{CWD}/prefix 239{CWD}/prefix/node_modules/chai 240{CWD}/prefix/node_modules/dog 241{CWD}/prefix/node_modules/foo 242` 243 244exports[`test/lib/commands/ls.js TAP ls --parseable missing/invalid/extraneous > should output parseable containing top-level deps and their deps only 1`] = ` 245{CWD}/prefix 246{CWD}/prefix/node_modules/chai 247{CWD}/prefix/node_modules/foo 248{CWD}/prefix/node_modules/dog 249` 250 251exports[`test/lib/commands/ls.js TAP ls --parseable no args > should output parseable representation of dependencies structure 1`] = ` 252{CWD}/prefix 253{CWD}/prefix/node_modules/chai 254{CWD}/prefix/node_modules/foo 255{CWD}/prefix/node_modules/dog 256` 257 258exports[`test/lib/commands/ls.js TAP ls --parseable overridden dep > should contain overridden outout 1`] = ` 259{CWD}/prefix:test-overridden@1.0.0 260{CWD}/prefix/node_modules/foo:foo@1.0.0 261{CWD}/prefix/node_modules/bar:bar@1.0.0:OVERRIDDEN 262` 263 264exports[`test/lib/commands/ls.js TAP ls --parseable resolved points to git ref > should output tree containing git refs 1`] = ` 265{CWD}/prefix 266{CWD}/prefix/node_modules/abbrev 267` 268 269exports[`test/lib/commands/ls.js TAP ls --parseable unmet optional dep > should output parseable with empty entry for missing optional deps 1`] = ` 270{CWD}/prefix 271{CWD}/prefix/node_modules/chai 272{CWD}/prefix/node_modules/dev-dep 273{CWD}/prefix/node_modules/optional-dep 274{CWD}/prefix/node_modules/peer-dep 275{CWD}/prefix/node_modules/prod-dep 276{CWD}/prefix/node_modules/foo 277{CWD}/prefix/node_modules/prod-dep/node_modules/dog 278{CWD}/prefix/node_modules/dog 279` 280 281exports[`test/lib/commands/ls.js TAP ls --parseable unmet peer dep > should output parseable signaling missing peer dep in problems 1`] = ` 282{CWD}/prefix 283{CWD}/prefix/node_modules/chai 284{CWD}/prefix/node_modules/dev-dep 285{CWD}/prefix/node_modules/optional-dep 286{CWD}/prefix/node_modules/peer-dep 287{CWD}/prefix/node_modules/prod-dep 288{CWD}/prefix/node_modules/foo 289{CWD}/prefix/node_modules/prod-dep/node_modules/dog 290{CWD}/prefix/node_modules/dog 291` 292 293exports[`test/lib/commands/ls.js TAP ls --parseable using aliases > should output tree containing aliases 1`] = ` 294{CWD}/prefix 295{CWD}/prefix/node_modules/a 296` 297 298exports[`test/lib/commands/ls.js TAP ls --parseable with filter arg > should output parseable contaning only occurrences of filtered by package 1`] = ` 299{CWD}/prefix/node_modules/chai 300` 301 302exports[`test/lib/commands/ls.js TAP ls --parseable with filter arg nested dep > should output parseable contaning only occurrences of filtered package 1`] = ` 303{CWD}/prefix/node_modules/dog 304` 305 306exports[`test/lib/commands/ls.js TAP ls --parseable with missing filter arg > should output parseable output containing no dependencies info 1`] = ` 307 308` 309 310exports[`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`] = ` 311{CWD}/prefix/node_modules/chai 312{CWD}/prefix/node_modules/dog 313` 314 315exports[`test/lib/commands/ls.js TAP ls --production > should output tree containing production deps 1`] = ` 316test-npm-ls@1.0.0 {CWD}/prefix 317+-- chai@1.0.0 318+-- optional-dep@1.0.0 319\`-- prod-dep@1.0.0 320 \`-- dog@2.0.0 321 322` 323 324exports[`test/lib/commands/ls.js TAP ls broken resolved field > should NOT print git refs in output tree 1`] = ` 325npm-broken-resolved-field-test@1.0.0 {CWD}/prefix 326\`-- a@1.0.1 327 328` 329 330exports[`test/lib/commands/ls.js TAP ls colored output > should output tree containing color info 1`] = ` 331[0mtest-npm-ls@1.0.0 {CWD}/prefix[0m 332[0m+-- chai@1.0.0 [32m[40mextraneous[49m[39m[0m 333[0m+-- foo@1.0.0 [31m[40minvalid: "^2.0.0" from the root project[49m[39m[0m 334[0m| \`-- dog@1.0.0[0m 335[0m\`-- [31m[40mUNMET DEPENDENCY[49m[39m ipsum@^1.0.0[0m 336[0m[0m 337` 338 339exports[`test/lib/commands/ls.js TAP ls cycle deps > should print tree output containing deduped ref 1`] = ` 340test-npm-ls@1.0.0 {CWD}/prefix 341\`-- a@1.0.0 342 \`-- b@1.0.0 343 \`-- a@1.0.0 deduped 344 345` 346 347exports[`test/lib/commands/ls.js TAP ls cycle deps with filter args > should print tree output containing deduped ref 1`] = ` 348[0mtest-npm-ls@1.0.0 {CWD}/prefix[0m 349[0m\`-- [33m[40ma@1.0.0[49m[39m[0m 350[0m \`-- b@1.0.0[0m 351[0m \`-- [33m[40ma@1.0.0[49m[39m [90mdeduped[39m[0m 352[0m[0m 353` 354 355exports[`test/lib/commands/ls.js TAP ls deduped missing dep > should output parseable signaling missing peer dep in problems 1`] = ` 356test-npm-ls@1.0.0 {CWD}/prefix 357+-- a@1.0.0 358| \`-- UNMET DEPENDENCY b@^1.0.0 359\`-- UNMET DEPENDENCY b@^1.0.0 360 361` 362 363exports[`test/lib/commands/ls.js TAP ls default --depth value should be 0 > should output tree containing only top-level dependencies 1`] = ` 364test-npm-ls@1.0.0 {CWD}/prefix 365+-- chai@1.0.0 366\`-- foo@1.0.0 367 368` 369 370exports[`test/lib/commands/ls.js TAP ls empty location > should print empty result 1`] = ` 371{CWD}/prefix 372\`-- (empty) 373 374` 375 376exports[`test/lib/commands/ls.js TAP ls extraneous deps > should output containing problems info 1`] = ` 377test-npm-ls@1.0.0 {CWD}/prefix 378+-- chai@1.0.0 extraneous 379\`-- foo@1.0.0 380 \`-- dog@1.0.0 381 382` 383 384exports[`test/lib/commands/ls.js TAP ls filter pkg arg using depth option should list a in top-level only > output 1`] = ` 385test-pkg-arg-filter-with-depth-opt@1.0.0 {CWD}/prefix 386\`-- a@1.0.0 387 388` 389 390exports[`test/lib/commands/ls.js TAP ls filter pkg arg using depth option should print empty results msg > output 1`] = ` 391test-pkg-arg-filter-with-depth-opt@1.0.0 {CWD}/prefix 392\`-- (empty) 393 394` 395 396exports[`test/lib/commands/ls.js TAP ls filter pkg arg using depth option should print expected result > output 1`] = ` 397test-pkg-arg-filter-with-depth-opt@1.0.0 {CWD}/prefix 398\`-- b@1.0.0 399 \`-- c@1.0.0 400 \`-- d@1.0.0 401 402` 403 404exports[`test/lib/commands/ls.js TAP ls filtering by child of missing dep > should print tree and not duplicate child of missing items 1`] = ` 405filter-by-child-of-missing-dep@1.0.0 {CWD}/prefix 406+-- b@1.0.0 extraneous 407| \`-- c@1.0.0 deduped 408+-- c@1.0.0 extraneous 409\`-- d@1.0.0 extraneous 410 \`-- c@2.0.0 extraneous 411 412` 413 414exports[`test/lib/commands/ls.js TAP ls from and resolved properties > should not be printed in tree output 1`] = ` 415test-npm-ls@1.0.0 {CWD}/prefix 416\`-- simple-output@2.1.1 417 418` 419 420exports[`test/lib/commands/ls.js TAP ls global > should print tree and not mark top-level items extraneous 1`] = ` 421{CWD}/global 422+-- a@1.0.0 423\`-- b@1.0.0 424 \`-- c@1.0.0 425 426` 427 428exports[`test/lib/commands/ls.js TAP ls invalid deduped dep > should output tree signaling mismatching peer dep in problems 1`] = ` 429[0minvalid-deduped-dep@1.0.0 {CWD}/prefix[0m 430[0m+-- a@1.0.0[0m 431[0m| \`-- b@1.0.0 [90mdeduped[39m [31m[40minvalid: "^2.0.0" from the root project, "^2.0.0" from node_modules/a[49m[39m[0m 432[0m\`-- b@1.0.0 [31m[40minvalid: "^2.0.0" from the root project, "^2.0.0" from node_modules/a[49m[39m[0m 433[0m[0m 434` 435 436exports[`test/lib/commands/ls.js TAP ls invalid peer dep > should output tree signaling mismatching peer dep in problems 1`] = ` 437test-npm-ls@1.0.0 {CWD}/prefix 438+-- chai@1.0.0 439+-- dev-dep@1.0.0 440| \`-- foo@1.0.0 441| \`-- dog@1.0.0 442+-- optional-dep@1.0.0 443+-- peer-dep@1.0.0 invalid: "^2.0.0" from the root project 444\`-- prod-dep@1.0.0 445 \`-- dog@2.0.0 446 447` 448 449exports[`test/lib/commands/ls.js TAP ls json read problems > should print empty result 1`] = ` 450{CWD}/prefix 451\`-- (empty) 452 453` 454 455exports[`test/lib/commands/ls.js TAP ls loading a tree containing workspaces should filter by parent folder workspace config > output 1`] = ` 456workspaces-tree@1.0.0 {CWD}/prefix 457+-- e@1.0.0 -> ./group/e 458\`-- f@1.0.0 -> ./group/f 459 460` 461 462exports[`test/lib/commands/ls.js TAP ls loading a tree containing workspaces should filter single workspace > output 1`] = ` 463workspaces-tree@1.0.0 {CWD}/prefix 464+-- a@1.0.0 -> ./a 465| \`-- d@1.0.0 deduped -> ./d 466\`-- d@1.0.0 -> ./d 467 468` 469 470exports[`test/lib/commands/ls.js TAP ls loading a tree containing workspaces should filter using workspace config > output 1`] = ` 471workspaces-tree@1.0.0 {CWD}/prefix 472\`-- a@1.0.0 -> ./a 473 +-- baz@1.0.0 474 +-- c@1.0.0 475 \`-- d@1.0.0 -> ./d 476 \`-- foo@1.1.1 477 \`-- bar@1.0.0 478 479` 480 481exports[`test/lib/commands/ls.js TAP ls loading a tree containing workspaces should inlude root and specified workspace > output 1`] = ` 482workspaces-tree@1.0.0 {CWD}/prefix 483+-- d@1.0.0 -> ./d 484| \`-- foo@1.1.1 485| \`-- bar@1.0.0 486\`-- pacote@1.0.0 487 488` 489 490exports[`test/lib/commands/ls.js TAP ls loading a tree containing workspaces should list --all workspaces properly > output 1`] = ` 491workspaces-tree@1.0.0 {CWD}/prefix 492+-- a@1.0.0 -> ./a 493| +-- baz@1.0.0 494| +-- c@1.0.0 495| \`-- d@1.0.0 deduped -> ./d 496+-- b@1.0.0 -> ./b 497+-- d@1.0.0 -> ./d 498| \`-- foo@1.1.1 499| \`-- bar@1.0.0 500+-- e@1.0.0 -> ./group/e 501+-- f@1.0.0 -> ./group/f 502\`-- pacote@1.0.0 503 504` 505 506exports[`test/lib/commands/ls.js TAP ls loading a tree containing workspaces should list only prod deps of workspaces > output 1`] = ` 507workspaces-tree@1.0.0 {CWD}/prefix 508+-- a@1.0.0 -> ./a 509| +-- c@1.0.0 510| \`-- d@1.0.0 deduped -> ./d 511+-- b@1.0.0 -> ./b 512+-- d@1.0.0 -> ./d 513| \`-- foo@1.1.1 514| \`-- bar@1.0.0 515+-- e@1.0.0 -> ./group/e 516+-- f@1.0.0 -> ./group/f 517\`-- pacote@1.0.0 518 519` 520 521exports[`test/lib/commands/ls.js TAP ls loading a tree containing workspaces should list workspaces properly with default configs > output 1`] = ` 522[0mworkspaces-tree@1.0.0 {CWD}/prefix[0m 523[0m+-- [32ma@1.0.0[39m -> ./a[0m 524[0m| +-- baz@1.0.0[0m 525[0m| +-- c@1.0.0[0m 526[0m| \`-- d@1.0.0 [90mdeduped[39m -> ./d[0m 527[0m+-- [32mb@1.0.0[39m -> ./b[0m 528[0m+-- [32md@1.0.0[39m -> ./d[0m 529[0m| \`-- foo@1.1.1[0m 530[0m+-- [32me@1.0.0[39m -> ./group/e[0m 531[0m+-- [32mf@1.0.0[39m -> ./group/f[0m 532[0m\`-- pacote@1.0.0[0m 533[0m[0m 534` 535 536exports[`test/lib/commands/ls.js TAP ls loading a tree containing workspaces should not list workspaces with --no-workspaces > output 1`] = ` 537[0mworkspaces-tree@1.0.0 {CWD}/prefix[0m 538[0m\`-- pacote@1.0.0[0m 539[0m[0m 540` 541 542exports[`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`] = ` 543workspaces-tree@1.0.0 {CWD}/prefix 544\`-- d@1.0.0 -> ./d 545 \`-- foo@1.1.1 546 \`-- bar@1.0.0 547 548` 549 550exports[`test/lib/commands/ls.js TAP ls missing package.json > should output tree missing name/version of top-level package 1`] = ` 551{CWD}/prefix 552+-- chai@1.0.0 extraneous 553+-- dog@1.0.0 extraneous 554\`-- foo@1.0.0 extraneous 555 \`-- dog@1.0.0 deduped 556 557` 558 559exports[`test/lib/commands/ls.js TAP ls missing/invalid/extraneous > should output tree containing missing, invalid, extraneous labels 1`] = ` 560test-npm-ls@1.0.0 {CWD}/prefix 561+-- chai@1.0.0 extraneous 562+-- foo@1.0.0 invalid: "^2.0.0" from the root project 563| \`-- dog@1.0.0 564\`-- UNMET DEPENDENCY ipsum@^1.0.0 565 566` 567 568exports[`test/lib/commands/ls.js TAP ls no args > should output tree representation of dependencies structure 1`] = ` 569test-npm-ls@1.0.0 {CWD}/prefix 570+-- chai@1.0.0 571\`-- foo@1.0.0 572 \`-- dog@1.0.0 573 574` 575 576exports[`test/lib/commands/ls.js TAP ls overridden dep > should contain overridden outout 1`] = ` 577test-overridden@1.0.0 {CWD}/prefix 578\`-- foo@1.0.0 579 \`-- bar@1.0.0 overridden 580 581` 582 583exports[`test/lib/commands/ls.js TAP ls overridden dep w/ color > should contain overridden outout 1`] = ` 584[0mtest-overridden@1.0.0 {CWD}/prefix[0m 585[0m\`-- foo@1.0.0[0m 586[0m \`-- bar@1.0.0 [90moverridden[39m[0m 587[0m[0m 588` 589 590exports[`test/lib/commands/ls.js TAP ls print deduped symlinks > should output tree containing linked deps 1`] = ` 591print-deduped-symlinks@1.0.0 {CWD}/prefix 592+-- a@1.0.0 593| \`-- b@1.0.0 deduped -> ./b 594\`-- b@1.0.0 -> ./b 595 596` 597 598exports[`test/lib/commands/ls.js TAP ls resolved points to git ref > should output tree containing git refs 1`] = ` 599test-npm-ls@1.0.0 {CWD}/prefix 600\`-- abbrev@1.1.1 (git+ssh://git@github.com/isaacs/abbrev-js.git#b8f3a2fc0c3bb8ffd8b0d0072cc6b5a3667e963c) 601 602` 603 604exports[`test/lib/commands/ls.js TAP ls unmet optional dep > should output tree with empty entry for missing optional deps 1`] = ` 605[0mtest-npm-ls@1.0.0 {CWD}/prefix[0m 606[0m+-- chai@1.0.0[0m 607[0m+-- dev-dep@1.0.0[0m 608[0m| \`-- foo@1.0.0[0m 609[0m| \`-- dog@1.0.0[0m 610[0m+-- [33m[40mUNMET OPTIONAL DEPENDENCY[49m[39m missing-optional-dep@^1.0.0[0m 611[0m+-- optional-dep@1.0.0 [31m[40minvalid: "^2.0.0" from the root project[49m[39m[0m 612[0m+-- peer-dep@1.0.0[0m 613[0m\`-- prod-dep@1.0.0[0m 614[0m \`-- dog@2.0.0[0m 615[0m[0m 616` 617 618exports[`test/lib/commands/ls.js TAP ls unmet peer dep > should output tree signaling missing peer dep in problems 1`] = ` 619test-npm-ls@1.0.0 {CWD}/prefix 620\`-- UNMET DEPENDENCY peer-dep@* 621 622` 623 624exports[`test/lib/commands/ls.js TAP ls using aliases > should output tree containing aliases 1`] = ` 625test-npm-ls@1.0.0 {CWD}/prefix 626\`-- a@npm:b@1.0.0 627 628` 629 630exports[`test/lib/commands/ls.js TAP ls with args and dedupe entries > should print tree output containing deduped ref 1`] = ` 631[0mdedupe-entries@1.0.0 {CWD}/prefix[0m 632[0m+-- @npmcli/a@1.0.0[0m 633[0m| \`-- [33m[40m@npmcli/b@1.1.2[49m[39m [90mdeduped[39m[0m 634[0m+-- [33m[40m@npmcli/b@1.1.2[49m[39m[0m 635[0m\`-- @npmcli/c@1.0.0[0m 636[0m \`-- [33m[40m@npmcli/b@1.1.2[49m[39m [90mdeduped[39m[0m 637[0m[0m 638` 639 640exports[`test/lib/commands/ls.js TAP ls with args and different order of items > should print tree output containing deduped ref 1`] = ` 641dedupe-entries@1.0.0 {CWD}/prefix 642+-- @npmcli/a@1.0.0 643| \`-- @npmcli/c@1.0.0 deduped 644+-- @npmcli/b@1.1.2 645| \`-- @npmcli/c@1.0.0 deduped 646\`-- @npmcli/c@1.0.0 647 648` 649 650exports[`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`] = ` 651test-npm-ls@1.0.0 {CWD}/prefix 652\`-- (empty) 653 654` 655 656exports[`test/lib/commands/ls.js TAP ls with filter arg > should output tree contaning only occurrences of filtered by package and colored output 1`] = ` 657[0mtest-npm-ls@1.0.0 {CWD}/prefix[0m 658[0m\`-- [33m[40mchai@1.0.0[49m[39m[0m 659[0m[0m 660` 661 662exports[`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`] = ` 663test-npm-ls@1.0.0 {CWD}/prefix 664\`-- foo@1.0.0 665 \`-- dog@1.0.0 666 667` 668 669exports[`test/lib/commands/ls.js TAP ls with missing filter arg > should output tree containing no dependencies info 1`] = ` 670test-npm-ls@1.0.0 {CWD}/prefix 671\`-- (empty) 672 673` 674 675exports[`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`] = ` 676test-npm-ls@1.0.0 {CWD}/prefix 677+-- chai@1.0.0 678\`-- foo@1.0.0 679 \`-- dog@1.0.0 680 681` 682 683exports[`test/lib/commands/ls.js TAP ls with no args dedupe entries > should print tree output containing deduped ref 1`] = ` 684dedupe-entries@1.0.0 {CWD}/prefix 685+-- @npmcli/a@1.0.0 686| \`-- @npmcli/b@1.1.2 deduped 687+-- @npmcli/b@1.1.2 688\`-- @npmcli/c@1.0.0 689 \`-- @npmcli/b@1.1.2 deduped 690 691` 692 693exports[`test/lib/commands/ls.js TAP ls with no args dedupe entries and not displaying all > should print tree output containing deduped ref 1`] = ` 694dedupe-entries@1.0.0 {CWD}/prefix 695+-- @npmcli/a@1.0.0 696+-- @npmcli/b@1.1.2 697\`-- @npmcli/c@1.0.0 698 699` 700 701exports[`test/lib/commands/ls.js TAP ls workspace and missing optional dep > should omit missing optional dep 1`] = ` 702root@ {CWD}/prefix 703+-- baz@1.0.0 -> ./baz 704\`-- foo@1.0.0 705 706` 707 708exports[`test/lib/commands/ls.js TAP show multiple invalid reasons > ls result 1`] = ` 709test-npm-ls@1.0.0 {CWD}/prefix 710+-- cat@1.0.0 invalid: "^2.0.0" from the root project 711| \`-- dog@1.0.0 deduped invalid: "^1.2.3" from the root project, "^2.0.0" from node_modules/cat 712+-- chai@1.0.0 extraneous 713| \`-- 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 714\`-- 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 715 \`-- cat@1.0.0 deduped invalid: "^2.0.0" from the root project 716 717` 718