Problem
scanRepo('package.json') silently scans the cwd instead of erroring: a non-directory target falls back to ".", so results describe the wrong tree.
Where
src/scan.js (non-directory target defaults to ".").
Acceptance
Add a failing test first calling scanRepo with a file path, expecting a throw/exit instead of a cwd report. Then fix.
Problem
scanRepo('package.json')silently scans the cwd instead of erroring: a non-directory target falls back to".", so results describe the wrong tree.Where
src/scan.js(non-directory target defaults to".").Acceptance
Add a failing test first calling
scanRepowith a file path, expecting a throw/exit instead of a cwd report. Then fix.