airbnb / hypernova

A service for server-side rendering your JavaScript views
MIT License
5.82k stars 208 forks source link

Make coverage reports es6 #63

Open magicmark opened 7 years ago

magicmark commented 7 years ago

(Used to look like this, now they look like this

test:quick and tests-only are kinda useless now but unsure if safe to deprecate (major bump?)

ljharb commented 7 years ago

nyc has more accurate coverage than istanbul-cli, so it's ok if they dropped a little bit.

magicmark commented 7 years ago

@ljharb rebased + made changes. I guess babel-node isn't needed since nyc is using babel-register to transpile tests.

magicmark commented 7 years ago

@ljharb rebased again

passing with node 6 and 7:

v6.3.1:
=============================== Coverage summary ===============================
Statements   : 91.06% ( 163/179 )
Branches     : 70.31% ( 45/64 )
Functions    : 57.89% ( 44/76 )
Lines        : 90.8% ( 158/174 )
================================================================================

v7.7.3:
=============================== Coverage summary ===============================
Statements   : 91.06% ( 163/179 )
Branches     : 70.31% ( 45/64 )
Functions    : 56.58% ( 43/76 )
Lines        : 90.8% ( 158/174 )
================================================================================