next-and-cypress-example
next-and-cypress-example copied to clipboard
Code instrumentation with c8
All examples for coverage I could find use babel for code instrumentation. Now with nextjs 12 moving away from babel what would be a good approach to get code coverage working?
ok, will try some more with nyc.
Re-opening this because I can not figure out how to use cypress with c8, which seems to be an interesting option post babel. It makes use of v8 built-in coverage. https://v8.dev/blog/javascript-code-coverage
If anyone knows how to get this working with cypress I'm thankful for all hints.