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/shrinkwrap.js TAP with hidden lockfile ancient > must match snapshot 1`] = ` 9{ 10 "localPrefix": { 11 "node_modules": { 12 ".package-lock.json": { 13 "lockfileVersion": 1 14 } 15 } 16 }, 17 "config": {}, 18 "shrinkwrap": { 19 "name": "prefix", 20 "lockfileVersion": 1, 21 "requires": true 22 }, 23 "logs": [ 24 "created a lockfile as npm-shrinkwrap.json" 25 ] 26} 27` 28 29exports[`test/lib/commands/shrinkwrap.js TAP with hidden lockfile ancient upgrade > must match snapshot 1`] = ` 30{ 31 "localPrefix": { 32 "node_modules": { 33 ".package-lock.json": { 34 "lockfileVersion": 1 35 } 36 } 37 }, 38 "config": { 39 "lockfile-version": 3 40 }, 41 "shrinkwrap": { 42 "name": "prefix", 43 "lockfileVersion": 3, 44 "requires": true, 45 "packages": {} 46 }, 47 "logs": [ 48 "created a lockfile as npm-shrinkwrap.json with version 3" 49 ] 50} 51` 52 53exports[`test/lib/commands/shrinkwrap.js TAP with hidden lockfile existing > must match snapshot 1`] = ` 54{ 55 "localPrefix": { 56 "node_modules": { 57 ".package-lock.json": { 58 "lockfileVersion": 2 59 } 60 } 61 }, 62 "config": {}, 63 "shrinkwrap": { 64 "name": "prefix", 65 "lockfileVersion": 2, 66 "requires": true, 67 "packages": {} 68 }, 69 "logs": [ 70 "created a lockfile as npm-shrinkwrap.json" 71 ] 72} 73` 74 75exports[`test/lib/commands/shrinkwrap.js TAP with hidden lockfile existing downgrade > must match snapshot 1`] = ` 76{ 77 "localPrefix": { 78 "node_modules": { 79 ".package-lock.json": { 80 "lockfileVersion": 2 81 } 82 } 83 }, 84 "config": { 85 "lockfile-version": 1 86 }, 87 "shrinkwrap": { 88 "name": "prefix", 89 "lockfileVersion": 1, 90 "requires": true 91 }, 92 "logs": [ 93 "created a lockfile as npm-shrinkwrap.json with version 1" 94 ] 95} 96` 97 98exports[`test/lib/commands/shrinkwrap.js TAP with hidden lockfile existing upgrade > must match snapshot 1`] = ` 99{ 100 "localPrefix": { 101 "node_modules": { 102 ".package-lock.json": { 103 "lockfileVersion": 2 104 } 105 } 106 }, 107 "config": { 108 "lockfile-version": 3 109 }, 110 "shrinkwrap": { 111 "name": "prefix", 112 "lockfileVersion": 3, 113 "requires": true, 114 "packages": {} 115 }, 116 "logs": [ 117 "created a lockfile as npm-shrinkwrap.json with version 3" 118 ] 119} 120` 121 122exports[`test/lib/commands/shrinkwrap.js TAP with nothing ancient > must match snapshot 1`] = ` 123{ 124 "localPrefix": {}, 125 "config": {}, 126 "shrinkwrap": { 127 "name": "prefix", 128 "lockfileVersion": 3, 129 "requires": true, 130 "packages": {} 131 }, 132 "logs": [ 133 "created a lockfile as npm-shrinkwrap.json with version 3" 134 ] 135} 136` 137 138exports[`test/lib/commands/shrinkwrap.js TAP with nothing ancient upgrade > must match snapshot 1`] = ` 139{ 140 "localPrefix": {}, 141 "config": { 142 "lockfile-version": 3 143 }, 144 "shrinkwrap": { 145 "name": "prefix", 146 "lockfileVersion": 3, 147 "requires": true, 148 "packages": {} 149 }, 150 "logs": [ 151 "created a lockfile as npm-shrinkwrap.json with version 3" 152 ] 153} 154` 155 156exports[`test/lib/commands/shrinkwrap.js TAP with npm-shrinkwrap.json ancient > must match snapshot 1`] = ` 157{ 158 "localPrefix": { 159 "npm-shrinkwrap.json": { 160 "lockfileVersion": 1 161 } 162 }, 163 "config": {}, 164 "shrinkwrap": { 165 "name": "prefix", 166 "lockfileVersion": 3, 167 "requires": true, 168 "packages": { 169 "": { 170 "name": "prefix" 171 } 172 } 173 }, 174 "logs": [ 175 "npm-shrinkwrap.json updated to version 3" 176 ] 177} 178` 179 180exports[`test/lib/commands/shrinkwrap.js TAP with npm-shrinkwrap.json ancient upgrade > must match snapshot 1`] = ` 181{ 182 "localPrefix": { 183 "npm-shrinkwrap.json": { 184 "lockfileVersion": 1 185 } 186 }, 187 "config": { 188 "lockfile-version": 3 189 }, 190 "shrinkwrap": { 191 "name": "prefix", 192 "lockfileVersion": 3, 193 "requires": true, 194 "packages": { 195 "": { 196 "name": "prefix" 197 } 198 } 199 }, 200 "logs": [ 201 "npm-shrinkwrap.json updated to version 3" 202 ] 203} 204` 205 206exports[`test/lib/commands/shrinkwrap.js TAP with npm-shrinkwrap.json existing > must match snapshot 1`] = ` 207{ 208 "localPrefix": { 209 "npm-shrinkwrap.json": { 210 "lockfileVersion": 2 211 } 212 }, 213 "config": {}, 214 "shrinkwrap": { 215 "name": "prefix", 216 "lockfileVersion": 2, 217 "requires": true, 218 "packages": { 219 "": { 220 "name": "prefix" 221 } 222 } 223 }, 224 "logs": [ 225 "npm-shrinkwrap.json up to date" 226 ] 227} 228` 229 230exports[`test/lib/commands/shrinkwrap.js TAP with npm-shrinkwrap.json existing downgrade > must match snapshot 1`] = ` 231{ 232 "localPrefix": { 233 "npm-shrinkwrap.json": { 234 "lockfileVersion": 2 235 } 236 }, 237 "config": { 238 "lockfile-version": 1 239 }, 240 "shrinkwrap": { 241 "name": "prefix", 242 "lockfileVersion": 1, 243 "requires": true 244 }, 245 "logs": [ 246 "npm-shrinkwrap.json updated to version 1" 247 ] 248} 249` 250 251exports[`test/lib/commands/shrinkwrap.js TAP with npm-shrinkwrap.json existing upgrade > must match snapshot 1`] = ` 252{ 253 "localPrefix": { 254 "npm-shrinkwrap.json": { 255 "lockfileVersion": 2 256 } 257 }, 258 "config": { 259 "lockfile-version": 3 260 }, 261 "shrinkwrap": { 262 "name": "prefix", 263 "lockfileVersion": 3, 264 "requires": true, 265 "packages": { 266 "": { 267 "name": "prefix" 268 } 269 } 270 }, 271 "logs": [ 272 "npm-shrinkwrap.json updated to version 3" 273 ] 274} 275` 276 277exports[`test/lib/commands/shrinkwrap.js TAP with package-lock.json ancient > must match snapshot 1`] = ` 278{ 279 "localPrefix": { 280 "package-lock.json": { 281 "lockfileVersion": 1 282 } 283 }, 284 "config": {}, 285 "shrinkwrap": { 286 "name": "prefix", 287 "lockfileVersion": 3, 288 "requires": true, 289 "packages": { 290 "": { 291 "name": "prefix" 292 } 293 } 294 }, 295 "logs": [ 296 "package-lock.json has been renamed to npm-shrinkwrap.json and updated to version 3" 297 ] 298} 299` 300 301exports[`test/lib/commands/shrinkwrap.js TAP with package-lock.json ancient upgrade > must match snapshot 1`] = ` 302{ 303 "localPrefix": { 304 "package-lock.json": { 305 "lockfileVersion": 1 306 } 307 }, 308 "config": { 309 "lockfile-version": 3 310 }, 311 "shrinkwrap": { 312 "name": "prefix", 313 "lockfileVersion": 3, 314 "requires": true, 315 "packages": { 316 "": { 317 "name": "prefix" 318 } 319 } 320 }, 321 "logs": [ 322 "package-lock.json has been renamed to npm-shrinkwrap.json and updated to version 3" 323 ] 324} 325` 326 327exports[`test/lib/commands/shrinkwrap.js TAP with package-lock.json existing > must match snapshot 1`] = ` 328{ 329 "localPrefix": { 330 "package-lock.json": { 331 "lockfileVersion": 2 332 } 333 }, 334 "config": {}, 335 "shrinkwrap": { 336 "name": "prefix", 337 "lockfileVersion": 2, 338 "requires": true, 339 "packages": { 340 "": { 341 "name": "prefix" 342 } 343 } 344 }, 345 "logs": [ 346 "package-lock.json has been renamed to npm-shrinkwrap.json" 347 ] 348} 349` 350 351exports[`test/lib/commands/shrinkwrap.js TAP with package-lock.json existing downgrade > must match snapshot 1`] = ` 352{ 353 "localPrefix": { 354 "package-lock.json": { 355 "lockfileVersion": 2 356 } 357 }, 358 "config": { 359 "lockfile-version": 1 360 }, 361 "shrinkwrap": { 362 "name": "prefix", 363 "lockfileVersion": 1, 364 "requires": true 365 }, 366 "logs": [ 367 "package-lock.json has been renamed to npm-shrinkwrap.json and updated to version 1" 368 ] 369} 370` 371 372exports[`test/lib/commands/shrinkwrap.js TAP with package-lock.json existing upgrade > must match snapshot 1`] = ` 373{ 374 "localPrefix": { 375 "package-lock.json": { 376 "lockfileVersion": 2 377 } 378 }, 379 "config": { 380 "lockfile-version": 3 381 }, 382 "shrinkwrap": { 383 "name": "prefix", 384 "lockfileVersion": 3, 385 "requires": true, 386 "packages": { 387 "": { 388 "name": "prefix" 389 } 390 } 391 }, 392 "logs": [ 393 "package-lock.json has been renamed to npm-shrinkwrap.json and updated to version 3" 394 ] 395} 396` 397