Debian Codegraph @

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