This also adds the production of a HTML coverage report into the coverage directory,
so this directory has been added to .gitignore.
Note that the reported coverage will be lower than previously, but more accurate for the sources. It's mostly around the console.errors for invalid transaction ids - the attempt to cover which led me to discover the bug in #32.
Use the babel-preset-istanbul to provide better coverage instrumentation of ES6 sources. Add
nyc
config topacakge.json
as per instructions at https://github.com/istanbuljs/nyc#use-with-babel-plugin-istanbul-for-babel-support, and change the command for running tests to useNODE_ENV=test
viacross-env
.This also adds the production of a HTML coverage report into the
coverage
directory, so this directory has been added to.gitignore
.Note that the reported coverage will be lower than previously, but more accurate for the sources. It's mostly around the
console.errors
for invalid transaction ids - the attempt to cover which led me to discover the bug in #32.