| 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/outdated.js TAP aliases > should display aliased outdated dep output 1`] = ` |
| 9 |
Package Current Wanted Latest Location Depended by |
| 10 |
cat:dog@latest 1.0.0 2.0.0 2.0.0 node_modules/cat prefix |
| 11 |
` |
| 12 |
|
| 13 |
exports[`test/lib/commands/outdated.js TAP aliases with version range > should display aliased outdated dep output with correct wanted values 1`] = ` |
| 14 |
Package Current Wanted Latest Location Depended by |
| 15 |
cat:dog@^1.0.0 1.0.0 1.0.1 2.0.0 node_modules/cat prefix |
| 16 |
` |
| 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 |
"dependedByLocation": "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 |
"dependedByLocation": "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 Depended By Location |
| 45 |
dog 1.0.0 1.0.1 2.0.0 node_modules/dog [email protected] dependencies a |
| 46 |
dog 1.0.0 1.0.1 2.0.0 node_modules/dog a@npm:[email protected] dependencies nest/a |
| 47 |
` |
| 48 |
|
| 49 |
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --all > must match snapshot 1`] = ` |
| 50 |
Package Current Wanted Latest Location Depended by |
| 51 |
cat 1.0.0 1.0.1 1.0.1 node_modules/cat prefix |
| 52 |
chai 1.0.0 1.0.1 1.0.1 node_modules/chai prefix |
| 53 |
dog 1.0.1 1.0.1 2.0.0 node_modules/dog prefix |
| 54 |
theta MISSING 1.0.1 1.0.1 - prefix |
| 55 |
` |
| 56 |
|
| 57 |
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --json --long > must match snapshot 1`] = ` |
| 58 |
{ |
| 59 |
"cat": { |
| 60 |
"current": "1.0.0", |
| 61 |
"wanted": "1.0.1", |
| 62 |
"latest": "1.0.1", |
| 63 |
"dependent": "prefix", |
| 64 |
"location": "{CWD}/prefix/node_modules/cat", |
| 65 |
"type": "dependencies", |
| 66 |
"dependedByLocation": "" |
| 67 |
}, |
| 68 |
"chai": { |
| 69 |
"current": "1.0.0", |
| 70 |
"wanted": "1.0.1", |
| 71 |
"latest": "1.0.1", |
| 72 |
"dependent": "prefix", |
| 73 |
"location": "{CWD}/prefix/node_modules/chai", |
| 74 |
"type": "peerDependencies", |
| 75 |
"dependedByLocation": "" |
| 76 |
}, |
| 77 |
"dog": { |
| 78 |
"current": "1.0.1", |
| 79 |
"wanted": "1.0.1", |
| 80 |
"latest": "2.0.0", |
| 81 |
"dependent": "prefix", |
| 82 |
"location": "{CWD}/prefix/node_modules/dog", |
| 83 |
"type": "dependencies", |
| 84 |
"dependedByLocation": "" |
| 85 |
}, |
| 86 |
"theta": { |
| 87 |
"wanted": "1.0.1", |
| 88 |
"latest": "1.0.1", |
| 89 |
"dependent": "prefix", |
| 90 |
"type": "dependencies", |
| 91 |
"dependedByLocation": "" |
| 92 |
} |
| 93 |
} |
| 94 |
` |
| 95 |
|
| 96 |
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --json > must match snapshot 1`] = ` |
| 97 |
{ |
| 98 |
"cat": { |
| 99 |
"current": "1.0.0", |
| 100 |
"wanted": "1.0.1", |
| 101 |
"latest": "1.0.1", |
| 102 |
"dependent": "prefix", |
| 103 |
"location": "{CWD}/prefix/node_modules/cat" |
| 104 |
}, |
| 105 |
"chai": { |
| 106 |
"current": "1.0.0", |
| 107 |
"wanted": "1.0.1", |
| 108 |
"latest": "1.0.1", |
| 109 |
"dependent": "prefix", |
| 110 |
"location": "{CWD}/prefix/node_modules/chai" |
| 111 |
}, |
| 112 |
"dog": { |
| 113 |
"current": "1.0.1", |
| 114 |
"wanted": "1.0.1", |
| 115 |
"latest": "2.0.0", |
| 116 |
"dependent": "prefix", |
| 117 |
"location": "{CWD}/prefix/node_modules/dog" |
| 118 |
}, |
| 119 |
"theta": { |
| 120 |
"wanted": "1.0.1", |
| 121 |
"latest": "1.0.1", |
| 122 |
"dependent": "prefix" |
| 123 |
} |
| 124 |
} |
| 125 |
` |
| 126 |
|
| 127 |
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --long > must match snapshot 1`] = ` |
| 128 |
Package Current Wanted Latest Location Depended by Package Type Homepage Depended By Location |
| 129 |
cat 1.0.0 1.0.1 1.0.1 node_modules/cat prefix dependencies |
| 130 |
chai 1.0.0 1.0.1 1.0.1 node_modules/chai prefix peerDependencies |
| 131 |
dog 1.0.1 1.0.1 2.0.0 node_modules/dog prefix dependencies |
| 132 |
theta MISSING 1.0.1 1.0.1 - prefix dependencies |
| 133 |
` |
| 134 |
|
| 135 |
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --omit=dev --omit=peer > must match snapshot 1`] = ` |
| 136 |
[1m[4mPackage[24m[22m [1m[4mCurrent[24m[22m [1m[4mWanted[24m[22m [1m[4mLatest[24m[22m [1m[4mLocation[24m[22m [1m[4mDepended by[24m[22m |
| 137 |
[31mcat[39m 1.0.0 [36m1.0.1[39m [34m1.0.1[39m node_modules/cat prefix |
| 138 |
[33mdog[39m 1.0.1 [36m1.0.1[39m [34m2.0.0[39m node_modules/dog prefix |
| 139 |
[31mtheta[39m MISSING [36m1.0.1[39m [34m1.0.1[39m - prefix |
| 140 |
` |
| 141 |
|
| 142 |
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --omit=dev > must match snapshot 1`] = ` |
| 143 |
[1m[4mPackage[24m[22m [1m[4mCurrent[24m[22m [1m[4mWanted[24m[22m [1m[4mLatest[24m[22m [1m[4mLocation[24m[22m [1m[4mDepended by[24m[22m |
| 144 |
[31mcat[39m 1.0.0 [36m1.0.1[39m [34m1.0.1[39m node_modules/cat prefix |
| 145 |
[31mchai[39m 1.0.0 [36m1.0.1[39m [34m1.0.1[39m node_modules/chai prefix |
| 146 |
[33mdog[39m 1.0.1 [36m1.0.1[39m [34m2.0.0[39m node_modules/dog prefix |
| 147 |
[31mtheta[39m MISSING [36m1.0.1[39m [34m1.0.1[39m - prefix |
| 148 |
` |
| 149 |
|
| 150 |
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --omit=prod > must match snapshot 1`] = ` |
| 151 |
[1m[4mPackage[24m[22m [1m[4mCurrent[24m[22m [1m[4mWanted[24m[22m [1m[4mLatest[24m[22m [1m[4mLocation[24m[22m [1m[4mDepended by[24m[22m |
| 152 |
[31mcat[39m 1.0.0 [36m1.0.1[39m [34m1.0.1[39m node_modules/cat prefix |
| 153 |
[31mchai[39m 1.0.0 [36m1.0.1[39m [34m1.0.1[39m node_modules/chai prefix |
| 154 |
[33mdog[39m 1.0.1 [36m1.0.1[39m [34m2.0.0[39m node_modules/dog prefix |
| 155 |
` |
| 156 |
|
| 157 |
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --parseable --long > must match snapshot 1`] = ` |
| 158 |
{CWD}/prefix/node_modules/cat:[email protected]:[email protected]:[email protected]:prefix:dependencies:: |
| 159 |
{CWD}/prefix/node_modules/chai:[email protected]:[email protected]:[email protected]:prefix:peerDependencies:: |
| 160 |
{CWD}/prefix/node_modules/dog:[email protected]:[email protected]:[email protected]:prefix:dependencies:: |
| 161 |
:[email protected]:MISSING:[email protected]:prefix:dependencies:: |
| 162 |
` |
| 163 |
|
| 164 |
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated --parseable > must match snapshot 1`] = ` |
| 165 |
{CWD}/prefix/node_modules/cat:[email protected]:[email protected]:[email protected]:prefix |
| 166 |
{CWD}/prefix/node_modules/chai:[email protected]:[email protected]:[email protected]:prefix |
| 167 |
{CWD}/prefix/node_modules/dog:[email protected]:[email protected]:[email protected]:prefix |
| 168 |
:[email protected]:MISSING:[email protected]:prefix |
| 169 |
` |
| 170 |
|
| 171 |
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated > must match snapshot 1`] = ` |
| 172 |
[1m[4mPackage[24m[22m [1m[4mCurrent[24m[22m [1m[4mWanted[24m[22m [1m[4mLatest[24m[22m [1m[4mLocation[24m[22m [1m[4mDepended by[24m[22m |
| 173 |
[31mcat[39m 1.0.0 [36m1.0.1[39m [34m1.0.1[39m node_modules/cat prefix |
| 174 |
[31mchai[39m 1.0.0 [36m1.0.1[39m [34m1.0.1[39m node_modules/chai prefix |
| 175 |
[33mdog[39m 1.0.1 [36m1.0.1[39m [34m2.0.0[39m node_modules/dog prefix |
| 176 |
[31mtheta[39m MISSING [36m1.0.1[39m [34m1.0.1[39m - prefix |
| 177 |
` |
| 178 |
|
| 179 |
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated global > must match snapshot 1`] = ` |
| 180 |
Package Current Wanted Latest Location Depended by |
| 181 |
cat 1.0.0 1.0.1 1.0.1 node_modules/cat global |
| 182 |
` |
| 183 |
|
| 184 |
exports[`test/lib/commands/outdated.js TAP should display outdated deps outdated specific dep > must match snapshot 1`] = ` |
| 185 |
Package Current Wanted Latest Location Depended by |
| 186 |
cat 1.0.0 1.0.1 1.0.1 node_modules/cat prefix |
| 187 |
` |
| 188 |
|
| 189 |
exports[`test/lib/commands/outdated.js TAP workspaces should display all dependencies > output 1`] = ` |
| 190 |
Package Current Wanted Latest Location Depended by |
| 191 |
cat 1.0.0 1.0.1 1.0.1 node_modules/cat [email protected] |
| 192 |
chai 1.0.0 1.0.1 1.0.1 node_modules/chai foo |
| 193 |
dog 1.0.1 1.0.1 2.0.0 node_modules/dog prefix |
| 194 |
theta MISSING 1.0.1 1.0.1 - [email protected] |
| 195 |
theta MISSING 1.0.1 1.0.1 - [email protected] |
| 196 |
theta MISSING 1.0.1 1.0.1 - [email protected] |
| 197 |
` |
| 198 |
|
| 199 |
exports[`test/lib/commands/outdated.js TAP workspaces should display json results filtered by ws > output 1`] = ` |
| 200 |
{ |
| 201 |
"cat": { |
| 202 |
"current": "1.0.0", |
| 203 |
"wanted": "1.0.1", |
| 204 |
"latest": "1.0.1", |
| 205 |
"dependent": "a", |
| 206 |
"location": "{CWD}/prefix/node_modules/cat" |
| 207 |
} |
| 208 |
} |
| 209 |
` |
| 210 |
|
| 211 |
exports[`test/lib/commands/outdated.js TAP workspaces should display missing deps when filtering by ws > output 1`] = ` |
| 212 |
Package Current Wanted Latest Location Depended by |
| 213 |
theta MISSING 1.0.1 1.0.1 - [email protected] |
| 214 |
` |
| 215 |
|
| 216 |
exports[`test/lib/commands/outdated.js TAP workspaces should display nested deps when filtering by ws and using --all > output 1`] = ` |
| 217 |
Package Current Wanted Latest Location Depended by |
| 218 |
cat 1.0.0 1.0.1 1.0.1 node_modules/cat [email protected] |
| 219 |
chai 1.0.0 1.0.1 1.0.1 node_modules/chai foo |
| 220 |
` |
| 221 |
|
| 222 |
exports[`test/lib/commands/outdated.js TAP workspaces should display no results if ws has no deps to display > output 1`] = ` |
| 223 |
|
| 224 |
` |
| 225 |
|
| 226 |
exports[`test/lib/commands/outdated.js TAP workspaces should display only root outdated when ws disabled > output 1`] = ` |
| 227 |
|
| 228 |
` |
| 229 |
|
| 230 |
exports[`test/lib/commands/outdated.js TAP workspaces should display parseable results filtered by ws > output 1`] = ` |
| 231 |
{CWD}/prefix/node_modules/cat:[email protected]:[email protected]:[email protected]:a |
| 232 |
` |
| 233 |
|
| 234 |
exports[`test/lib/commands/outdated.js TAP workspaces should display results filtered by ws > output 1`] = ` |
| 235 |
Package Current Wanted Latest Location Depended by |
| 236 |
cat 1.0.0 1.0.1 1.0.1 node_modules/cat [email protected] |
| 237 |
` |
| 238 |
|
| 239 |
exports[`test/lib/commands/outdated.js TAP workspaces should display ws outdated deps human output > output 1`] = ` |
| 240 |
Package Current Wanted Latest Location Depended by |
| 241 |
cat 1.0.0 1.0.1 1.0.1 node_modules/cat [email protected] |
| 242 |
dog 1.0.1 1.0.1 2.0.0 node_modules/dog prefix |
| 243 |
theta MISSING 1.0.1 1.0.1 - [email protected] |
| 244 |
theta MISSING 1.0.1 1.0.1 - [email protected] |
| 245 |
theta MISSING 1.0.1 1.0.1 - [email protected] |
| 246 |
` |
| 247 |
|
| 248 |
exports[`test/lib/commands/outdated.js TAP workspaces should display ws outdated deps json output > output 1`] = ` |
| 249 |
{ |
| 250 |
"cat": { |
| 251 |
"current": "1.0.0", |
| 252 |
"wanted": "1.0.1", |
| 253 |
"latest": "1.0.1", |
| 254 |
"dependent": "a", |
| 255 |
"location": "{CWD}/prefix/node_modules/cat" |
| 256 |
}, |
| 257 |
"dog": { |
| 258 |
"current": "1.0.1", |
| 259 |
"wanted": "1.0.1", |
| 260 |
"latest": "2.0.0", |
| 261 |
"dependent": "prefix", |
| 262 |
"location": "{CWD}/prefix/node_modules/dog" |
| 263 |
}, |
| 264 |
"theta": [ |
| 265 |
{ |
| 266 |
"wanted": "1.0.1", |
| 267 |
"latest": "1.0.1", |
| 268 |
"dependent": "c" |
| 269 |
}, |
| 270 |
{ |
| 271 |
"wanted": "1.0.1", |
| 272 |
"latest": "1.0.1", |
| 273 |
"dependent": "d" |
| 274 |
}, |
| 275 |
{ |
| 276 |
"wanted": "1.0.1", |
| 277 |
"latest": "1.0.1", |
| 278 |
"dependent": "e" |
| 279 |
} |
| 280 |
] |
| 281 |
} |
| 282 |
` |
| 283 |
|
| 284 |
exports[`test/lib/commands/outdated.js TAP workspaces should display ws outdated deps parseable output > output 1`] = ` |
| 285 |
{CWD}/prefix/node_modules/cat:[email protected]:[email protected]:[email protected]:a |
| 286 |
{CWD}/prefix/node_modules/dog:[email protected]:[email protected]:[email protected]:prefix |
| 287 |
:[email protected]:MISSING:[email protected]:c |
| 288 |
:[email protected]:MISSING:[email protected]:d |
| 289 |
:[email protected]:MISSING:[email protected]:e |
| 290 |
` |
| 291 |
|
| 292 |
exports[`test/lib/commands/outdated.js TAP workspaces should highlight ws in depended by section > output 1`] = ` |
| 293 |
[1m[4mPackage[24m[22m [1m[4mCurrent[24m[22m [1m[4mWanted[24m[22m [1m[4mLatest[24m[22m [1m[4mLocation[24m[22m [1m[4mDepended by[24m[22m |
| 294 |
[31mcat[39m 1.0.0 [36m1.0.1[39m [34m1.0.1[39m node_modules/cat [[email protected][39m |
| 295 |
[33mdog[39m 1.0.1 [36m1.0.1[39m [34m2.0.0[39m node_modules/dog prefix |
| 296 |
[31mtheta[39m MISSING [36m1.0.1[39m [34m1.0.1[39m - [[email protected][39m |
| 297 |
[31mtheta[39m MISSING [36m1.0.1[39m [34m1.0.1[39m - [[email protected][39m |
| 298 |
[31mtheta[39m MISSING [36m1.0.1[39m [34m1.0.1[39m - [[email protected][39m |
| 299 |
` |