next-and-cypress-example icon indicating copy to clipboard operation
next-and-cypress-example copied to clipboard

Code instrumentation with c8

Open einSelbst opened this issue 3 years ago • 2 comments

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?

einSelbst avatar Feb 08 '22 17:02 einSelbst

ok, will try some more with nyc.

einSelbst avatar Feb 08 '22 19:02 einSelbst

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.

einSelbst avatar Feb 10 '22 13:02 einSelbst