Debian Codegraph @

tap-snapshots/test/lib/commands/ls.js.test.cjs

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