MCPcopy Create free account
hub / github.com/npm/cli / hasFile

Function hasFile

test/lib/commands/diff.js:119–119  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

117 })
118
119 const hasFile = (f) => !exec.length || exec.some(e => e.endsWith(f))
120
121 if (hasFile('package.json')) {
122 t.match(output, /-\s*"version": "0\.1\.0"/)

Callers 1

assertFooFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected