@@ -15,6 +15,37 @@ Package Current Wanted Latest Location Depended by
15
15
cat:dog@^1.0.0 1.0.0 1.0.1 2.0.0 node_modules/cat prefix
16
16
`
17
17
18
+ exports [ `test/lib/commands/outdated.js TAP dependent location --long --json > should display dependent location when using --long and --json 1` ] = `
19
+ {
20
+ "dog": [
21
+ {
22
+ "current": "1.0.0",
23
+ "wanted": "1.0.1",
24
+ "latest": "2.0.0",
25
+ "dependent": "a",
26
+ "location": "{CWD}/prefix/node_modules/dog",
27
+ "type": "dependencies",
28
+ "dependentLocation": "a"
29
+ },
30
+ {
31
+ "current": "1.0.0",
32
+ "wanted": "1.0.1",
33
+ "latest": "2.0.0",
34
+ "dependent": "a",
35
+ "location": "{CWD}/prefix/node_modules/dog",
36
+ "type": "dependencies",
37
+ "dependentLocation": "nest/a"
38
+ }
39
+ ]
40
+ }
41
+ `
42
+
43
+ exports [ `test/lib/commands/outdated.js TAP dependent location --long > should display dependent location when using --long 1` ] = `
44
+ Package Current Wanted Latest Location Depended by Package Type Homepage Dependent Location
45
+ dog 1.0.0 1.0.1 2.0.0 node_modules/dog a@1.0.0 dependencies a
46
+ dog 1.0.0 1.0.1 2.0.0 node_modules/dog a@npm:nest-a@1.0.0 dependencies nest/a
47
+ `
48
+
18
49
exports [ `test/lib/commands/outdated.js TAP should display outdated deps outdated --all > must match snapshot 1` ] = `
19
50
Package Current Wanted Latest Location Depended by
20
51
cat 1.0.0 1.0.1 1.0.1 node_modules/cat prefix
@@ -31,29 +62,33 @@ exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated
31
62
"latest": "1.0.1",
32
63
"dependent": "prefix",
33
64
"location": "{CWD}/prefix/node_modules/cat",
34
- "type": "dependencies"
65
+ "type": "dependencies",
66
+ "dependentLocation": ""
35
67
},
36
68
"chai": {
37
69
"current": "1.0.0",
38
70
"wanted": "1.0.1",
39
71
"latest": "1.0.1",
40
72
"dependent": "prefix",
41
73
"location": "{CWD}/prefix/node_modules/chai",
42
- "type": "peerDependencies"
74
+ "type": "peerDependencies",
75
+ "dependentLocation": ""
43
76
},
44
77
"dog": {
45
78
"current": "1.0.1",
46
79
"wanted": "1.0.1",
47
80
"latest": "2.0.0",
48
81
"dependent": "prefix",
49
82
"location": "{CWD}/prefix/node_modules/dog",
50
- "type": "dependencies"
83
+ "type": "dependencies",
84
+ "dependentLocation": ""
51
85
},
52
86
"theta": {
53
87
"wanted": "1.0.1",
54
88
"latest": "1.0.1",
55
89
"dependent": "prefix",
56
- "type": "dependencies"
90
+ "type": "dependencies",
91
+ "dependentLocation": ""
57
92
}
58
93
}
59
94
`
@@ -90,7 +125,7 @@ exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated
90
125
`
91
126
92
127
exports [ `test/lib/commands/outdated.js TAP should display outdated deps outdated --long > must match snapshot 1` ] = `
93
- Package Current Wanted Latest Location Depended by Package Type Homepage
128
+ Package Current Wanted Latest Location Depended by Package Type Homepage Dependent Location
94
129
cat 1.0.0 1.0.1 1.0.1 node_modules/cat prefix dependencies
95
130
chai 1.0.0 1.0.1 1.0.1 node_modules/chai prefix peerDependencies
96
131
dog 1.0.1 1.0.1 2.0.0 node_modules/dog prefix dependencies
@@ -120,10 +155,10 @@ exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated
120
155
`
121
156
122
157
exports [ `test/lib/commands/outdated.js TAP should display outdated deps outdated --parseable --long > must match snapshot 1` ] = `
123
- {CWD}/prefix/node_modules/cat:cat@1.0.1:cat@1.0.0:cat@1.0.1:prefix:dependencies:
124
- {CWD}/prefix/node_modules/chai:chai@1.0.1:chai@1.0.0:chai@1.0.1:prefix:peerDependencies:
125
- {CWD}/prefix/node_modules/dog:dog@1.0.1:dog@1.0.1:dog@2.0.0:prefix:dependencies:
126
- :theta@1.0.1:MISSING:theta@1.0.1:prefix:dependencies:
158
+ {CWD}/prefix/node_modules/cat:cat@1.0.1:cat@1.0.0:cat@1.0.1:prefix:dependencies::
159
+ {CWD}/prefix/node_modules/chai:chai@1.0.1:chai@1.0.0:chai@1.0.1:prefix:peerDependencies::
160
+ {CWD}/prefix/node_modules/dog:dog@1.0.1:dog@1.0.1:dog@2.0.0:prefix:dependencies::
161
+ :theta@1.0.1:MISSING:theta@1.0.1:prefix:dependencies::
127
162
`
128
163
129
164
exports [ `test/lib/commands/outdated.js TAP should display outdated deps outdated --parseable > must match snapshot 1` ] = `
0 commit comments