I am trying to add code coverage to cypress following this
After I run my quiz.spec.js
test, I run
npx nyc report --reporter=text-summary
And get an empty coverage summary
What am I doing wrong?
My github
CodePudding user response:
I think it was just a node_modules problem, as your repo worked after download and initialization. I think babel can fail silently if it's dependencies are out of order.
I removed package.lock
(because I use yarn
to manage things) and then yarn
to init the dependecies.