converts from v8 coverage format to istanbul's coverage format.
const v8toIstanbul =// create a script object from a source-file. the source file// is loaded from disk and this is used to determine the original// line count.const script =// provide an array of coverage information in v8 format.script// output coverage information in a form that can// be consumed by Istanbul.console
To execute tests, simply run:
To output istanbul coverage data while running tests (useful as you add new assertions), simply run:
DEBUG=true npm test