exports[`test/lib/commands/cache.js TAP cache npx info: valid and invalid entry > shows invalid package info 1`]=`
invalidnpxcacheentrywithkeydeadbeef
location:{CWD}/cache/_npx/deadbeef
invalidnpxcacheentrywithkeybadc0de
location:{CWD}/cache/_npx/badc0de
`
exports[`test/lib/commands/cache.js TAP cache npx info: valid and invalid entry > shows valid package info 1`]=`
invalidnpxcacheentrywithkeydeadbeef
location:{CWD}/cache/_npx/deadbeef
`
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`]=`
validnpxcacheentrywithkeyvalid123
location:{CWD}/cache/_npx/valid123
packages:
-/path/to/valid-package
`
exports[`test/lib/commands/cache.js TAP cache npx info: valid entry with _npx packages > shows valid package info with _npx packages 1`]=`
validnpxcacheentrywithkeyvalid123
location:{CWD}/cache/_npx/valid123
packages:
-valid-package@1.0.0(valid-package@1.0.0)
`
exports[`test/lib/commands/cache.js TAP cache npx info: valid entry with a link dependency > shows link dependency realpath (child.isLink branch) 1`]=`
validnpxcacheentrywithkeylink123
location:{CWD}/cache/_npx/link123
packages:(unknown)
dependencies:
-{CWD}/cache/_npx/some-other-loc
`
exports[`test/lib/commands/cache.js TAP cache npx info: valid entry with dependencies > shows valid package info with dependencies 1`]=`
validnpxcacheentrywithkeyvalid456
location:{CWD}/cache/_npx/valid456
packages:(unknown)
dependencies:
-dep-package@1.0.0
`
exports[`test/lib/commands/cache.js TAP cache npx ls: empty cache > logs message for empty npx cache 1`]=`
npxcachedoesnotexist
`
exports[`test/lib/commands/cache.js TAP cache npx ls: entry with unknown package > lists entry with unknown package 1`]=`
unknown123:(unknown)
`
exports[`test/lib/commands/cache.js TAP cache npx ls: some entries > lists one valid and one invalid entry 1`]=`
abc123:fake-npx-package@1.0.0
z9y8x7:(empty/invalid)
`
exports[`test/lib/commands/cache.js TAP cache npx rm: remove single entry > logs removing single npx cache entry 1`]=`
Removingnpxkeyat{CWD}/cache/_npx/123removeme
Removingnpxkeyat{CWD}/cache/_npx/123removeme
`
exports[`test/lib/commands/cache.js TAP cache npx rm: removing all with --force works > logs removing everything 1`]=`