• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

npm / cli / #2218
97%
latest: 97%

Build:
Build:
LAST BUILD BRANCH: nlf/arborist-validation
DEFAULT BRANCH: latest
Ran 28 May 2021 07:34PM UTC
Jobs 1
Files 123
Run time 31s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
#2218

push

ruyadorno
fix: refactor get package name

renames read-local-package to read-package-name

The global check needed to be moved outside this function, because it
was handled differently (and will be even moreso when we implement diff
workspaces) in each function.  This allowed us to now pass in the prefix
itself instead of the npm object, so we can reuse this function to look
up package names when we refactor npm diff for workspaces.

PR-URL: https://github.com/npm/cli/pull/3331
Credit: @wraithgar
Close: #3331
Reviewed-by: @ruyadorno

3112 of 3219 branches covered (96.68%)

Branch coverage included in aggregate %.

26 of 26 new or added lines in 4 files covered. (100.0%)

5300 of 5464 relevant lines covered (97.0%)

24.31 hits per line

Jobs
ID Job ID Ran Files Coverage
1 #2218.1 28 May 2021 07:34PM UTC 0
96.88
Source Files on build #2218
Detailed source file information is not available for this build.
  • Back to Repo
  • 09f9d2eb on github
  • Prev Build on gar/diff-workspaces
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc