Open travisbloom-cb opened 3 months ago
Currently there's no way to instrument the code, as NextJS uses a custom transpiler which is incompatible with existing plugins.
Downgrading to Babel is not an option because most of the cutting-edge Nextjs features will stop working, like the App Router and Font Optimization:
There is an open source plugin that works with SWC transpiler, but unfortunatelly it does not work with App Router:
Some issues to keep an eye on: https://github.com/vercel/next.js/discussions/53901 https://github.com/istanbuljs/babel-plugin-istanbul/issues/285
See these docs.
We have a paid cypress.io account so if there's any best practices for integrating our coverage with that suite we'll want to leverage.