@@ -15,6 +15,37 @@ Package Current Wanted Latest Location Depended by
1515cat:dog@^1.0.0 1.0.0 1.0.1 2.0.0 node_modules/cat prefix
1616`
1717
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+
1849exports [ `test/lib/commands/outdated.js TAP should display outdated deps outdated --all > must match snapshot 1` ] = `
1950Package Current Wanted Latest Location Depended by
2051cat 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
3162 "latest": "1.0.1",
3263 "dependent": "prefix",
3364 "location": "{CWD}/prefix/node_modules/cat",
34- "type": "dependencies"
65+ "type": "dependencies",
66+ "dependentLocation": ""
3567 },
3668 "chai": {
3769 "current": "1.0.0",
3870 "wanted": "1.0.1",
3971 "latest": "1.0.1",
4072 "dependent": "prefix",
4173 "location": "{CWD}/prefix/node_modules/chai",
42- "type": "peerDependencies"
74+ "type": "peerDependencies",
75+ "dependentLocation": ""
4376 },
4477 "dog": {
4578 "current": "1.0.1",
4679 "wanted": "1.0.1",
4780 "latest": "2.0.0",
4881 "dependent": "prefix",
4982 "location": "{CWD}/prefix/node_modules/dog",
50- "type": "dependencies"
83+ "type": "dependencies",
84+ "dependentLocation": ""
5185 },
5286 "theta": {
5387 "wanted": "1.0.1",
5488 "latest": "1.0.1",
5589 "dependent": "prefix",
56- "type": "dependencies"
90+ "type": "dependencies",
91+ "dependentLocation": ""
5792 }
5893}
5994`
@@ -90,7 +125,7 @@ exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated
90125`
91126
92127exports [ `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
94129cat 1.0.0 1.0.1 1.0.1 node_modules/cat prefix dependencies
95130chai 1.0.0 1.0.1 1.0.1 node_modules/chai prefix peerDependencies
96131dog 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
120155`
121156
122157exports [ `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::
127162`
128163
129164exports [ `test/lib/commands/outdated.js TAP should display outdated deps outdated --parseable > must match snapshot 1` ] = `
0 commit comments