| 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/cache.js TAP cache ls > logs cache entries 1`] = ` |
| 9 |
make-fetch-happen:request-cache:https://registry.npmjs.org/test-package |
| 10 |
make-fetch-happen:request-cache:https://registry.npmjs.org/test-package/-/test-package-1.0.0.tgz |
| 11 |
` |
| 12 |
|
| 13 |
exports[`test/lib/commands/cache.js TAP cache ls corrupted > logs cache entries with bad data 1`] = ` |
| 14 |
make-fetch-happen:request-cache:https://registry.npmjs.org/corrupted |
| 15 |
make-fetch-happen:request-cache:https://registry.npmjs.org/corrupted/-/corrupted-3.1.0.tgz |
| 16 |
` |
| 17 |
|
| 18 |
exports[`test/lib/commands/cache.js TAP cache ls missing packument version not an object > logs cache entry for packument 1`] = ` |
| 19 |
make-fetch-happen:request-cache:https://registry.npmjs.org/missing-version |
| 20 |
` |
| 21 |
|
| 22 |
exports[`test/lib/commands/cache.js TAP cache ls nonpublic registry > logs cache entry for extemporaneously and its tarball 1`] = ` |
| 23 |
make-fetch-happen:request-cache:https://somerepo.github.org/aabbcc/ |
| 24 |
make-fetch-happen:request-cache:https://somerepo.github.org/extemporaneously |
| 25 |
` |
| 26 |
|
| 27 |
exports[`test/lib/commands/cache.js TAP cache ls pkgs > logs cache entries for npm and webpack and one webpack tgz 1`] = ` |
| 28 |
make-fetch-happen:request-cache:https://registry.npmjs.org/npm |
| 29 |
make-fetch-happen:request-cache:https://registry.npmjs.org/npm/-/npm-1.2.0.tgz |
| 30 |
make-fetch-happen:request-cache:https://registry.npmjs.org/webpack |
| 31 |
make-fetch-happen:request-cache:https://registry.npmjs.org/webpack/-/webpack-4.47.0.tgz |
| 32 |
` |
| 33 |
|
| 34 |
exports[`test/lib/commands/cache.js TAP cache ls scoped and scoped slash > logs cache entries for @gar and @fritzy 1`] = ` |
| 35 |
make-fetch-happen:request-cache:https://registry.npmjs.org/@fritzy%2fstaydown |
| 36 |
make-fetch-happen:request-cache:https://registry.npmjs.org/@gar%2fnpm-expansion |
| 37 |
` |
| 38 |
|
| 39 |
exports[`test/lib/commands/cache.js TAP cache ls special > logs cache entries for foo 1`] = ` |
| 40 |
make-fetch-happen:request-cache:https://registry.npmjs.org/foo |
| 41 |
make-fetch-happen:request-cache:https://registry.npmjs.org/foo/-/foo-1.2.3-beta.tgz |
| 42 |
` |
| 43 |
|
| 44 |
exports[`test/lib/commands/cache.js TAP cache npx info: valid and invalid entry > shows invalid package info 1`] = ` |
| 45 |
invalid npx cache entry with key deadbeef |
| 46 |
location: {CWD}/cache/_npx/deadbeef |
| 47 |
|
| 48 |
invalid npx cache entry with key badc0de |
| 49 |
location: {CWD}/cache/_npx/badc0de |
| 50 |
` |
| 51 |
|
| 52 |
exports[`test/lib/commands/cache.js TAP cache npx info: valid and invalid entry > shows valid package info 1`] = ` |
| 53 |
invalid npx cache entry with key deadbeef |
| 54 |
location: {CWD}/cache/_npx/deadbeef |
| 55 |
` |
| 56 |
|
| 57 |
exports[`test/lib/commands/cache.js TAP cache npx info: valid entry with _npx directory package > shows valid package info with _npx directory package 1`] = ` |
| 58 |
valid npx cache entry with key valid123 |
| 59 |
location: {CWD}/cache/_npx/valid123 |
| 60 |
packages: |
| 61 |
- /path/to/valid-package |
| 62 |
` |
| 63 |
|
| 64 |
exports[`test/lib/commands/cache.js TAP cache npx info: valid entry with _npx packages > shows valid package info with _npx packages 1`] = ` |
| 65 |
valid npx cache entry with key valid123 |
| 66 |
location: {CWD}/cache/_npx/valid123 |
| 67 |
packages: |
| 68 |
- [email protected] ([email protected]) |
| 69 |
` |
| 70 |
|
| 71 |
exports[`test/lib/commands/cache.js TAP cache npx info: valid entry with a link dependency > shows link dependency realpath (child.isLink branch) 1`] = ` |
| 72 |
valid npx cache entry with key link123 |
| 73 |
location: {CWD}/cache/_npx/link123 |
| 74 |
packages: (unknown) |
| 75 |
dependencies: |
| 76 |
- {CWD}/cache/_npx/some-other-loc |
| 77 |
` |
| 78 |
|
| 79 |
exports[`test/lib/commands/cache.js TAP cache npx info: valid entry with dependencies > shows valid package info with dependencies 1`] = ` |
| 80 |
valid npx cache entry with key valid456 |
| 81 |
location: {CWD}/cache/_npx/valid456 |
| 82 |
packages: (unknown) |
| 83 |
dependencies: |
| 84 |
- [email protected] |
| 85 |
` |
| 86 |
|
| 87 |
exports[`test/lib/commands/cache.js TAP cache npx ls: empty cache > logs message for empty npx cache 1`] = ` |
| 88 |
npx cache does not exist |
| 89 |
` |
| 90 |
|
| 91 |
exports[`test/lib/commands/cache.js TAP cache npx ls: entry with unknown package > lists entry with unknown package 1`] = ` |
| 92 |
unknown123: (unknown) |
| 93 |
` |
| 94 |
|
| 95 |
exports[`test/lib/commands/cache.js TAP cache npx ls: some entries > lists one valid and one invalid entry 1`] = ` |
| 96 |
abc123: [email protected] |
| 97 |
z9y8x7: (empty/invalid) |
| 98 |
` |
| 99 |
|
| 100 |
exports[`test/lib/commands/cache.js TAP cache npx rm: remove single entry > logs removing single npx cache entry 1`] = ` |
| 101 |
Removing npx key at {CWD}/cache/_npx/123removeme |
| 102 |
Removing npx key at {CWD}/cache/_npx/123removeme |
| 103 |
` |
| 104 |
|
| 105 |
exports[`test/lib/commands/cache.js TAP cache npx rm: removing all with --force works > logs removing everything 1`] = ` |
| 106 |
Removing npx key at {CWD}/cache/_npx/remove-all-yes-force |
| 107 |
` |
| 108 |
|
| 109 |
exports[`test/lib/commands/cache.js TAP cache npx rm: removing all without --force fails > logs usage error when removing all without --force 1`] = ` |
| 110 |
|
| 111 |
` |
| 112 |
|
| 113 |
exports[`test/lib/commands/cache.js TAP cache npx rm: removing more than 1, less than all entries > logs removing 2 of 3 entries 1`] = ` |
| 114 |
Removing npx key at {CWD}/cache/_npx/123removeme |
| 115 |
Removing npx key at {CWD}/cache/_npx/456removeme |
| 116 |
Removing npx key at {CWD}/cache/_npx/123removeme |
| 117 |
Removing npx key at {CWD}/cache/_npx/456removeme |
| 118 |
` |
| 119 |
|
| 120 |
exports[`test/lib/commands/cache.js TAP cache rm > logs deleting single entry 1`] = ` |
| 121 |
Deleted: make-fetch-happen:request-cache:https://registry.npmjs.org/test-package/-/test-package-1.0.0.tgz |
| 122 |
` |
| 123 |
|
| 124 |
exports[`test/lib/commands/cache.js TAP cache verify > shows verified cache output 1`] = ` |
| 125 |
Cache verified and compressed ({PATH}) |
| 126 |
Content verified: 0 (0 bytes) |
| 127 |
Index entries: 0 |
| 128 |
Finished in xxxs |
| 129 |
` |
| 130 |
|
| 131 |
exports[`test/lib/commands/cache.js TAP cache verify w/ extra output > shows extra output 1`] = ` |
| 132 |
Cache verified and compressed ({PATH}) |
| 133 |
Content verified: 17057 (1644485260 bytes) |
| 134 |
Corrupted content removed: 12345 |
| 135 |
Content garbage-collected: 1144 (248164665 bytes) |
| 136 |
Missing content: 92 |
| 137 |
Index entries: 20175 |
| 138 |
Finished in xxxs |
| 139 |
` |