Home > other >  Nextjs Cypress Only found unit test code coverage
Nextjs Cypress Only found unit test code coverage

Time:02-17

I am trying to add code coverage to cypress following this enter image description here

After I run my quiz.spec.js test, I run

npx nyc report --reporter=text-summary  

And get an empty coverage summary

enter image description here

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.

  • Related