Cypress code coverage with next.js, swc-plugin-coverage-instrument and cypress/code-coverage
My application is using next.js (v 14.1.0) and SWC to compile the code. Because I am not using babel, and I’m using SWC, instrumentation has been challenging to implement with cypress, but I am trying to do so using swc-plugin-coverage-instrument
. I’ve installed that, as well as cypress/code-coverage
. Here is what I have added in my cypress.config.ts