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

npm / arborist / #597 / 1

Build:
Build:
LAST BUILD BRANCH:
DEFAULT BRANCH: master
Ran 22 Jan 2021 08:06PM UTC
Files 37
Run time 5s
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

22 Jan 2021 08:04PM UTC coverage: 100.0%. Remained the same
#597.1

push

isaacs
Make printable Node/Link output a bit more useful

This tightens up the Edge representation to what is most useful,
displays Links as 'ArboristLink', and makes the code a bit easier to
work with instead of being one giant inline object.

Edges are now printed as `{ from type name@spec [error]}` for edgesIn,
and `{type name@spec [to] [error]}` for edgesOut, since we only care
about the 'from' value when it's an edge in, and only care about 'to'
when it's an edge out.  Usually, an edge will fit on one line, which is
super handy when debugging trees with lots of dependencies.
(Previously, I'd often console.error() them as
`[from.location,type,spec,to && to.location,error]` for this reason.)

It also separates out the pretty printing stuff into a standalone file, so
it's not taking up as much space in the Node class definition, and a bit
easier to maintain going forward.

2684 of 2684 branches covered (100.0%)

Branch coverage included in aggregate %.

3686 of 3686 relevant lines covered (100.0%)

500.53 hits per line

Source Files on job #597.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Build 597
  • c251d64e on github
  • Prev Job for on (##596.1)
  • Next Job for on (##598.1)
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