https://cypress.io logo
Is there a way to calculate the code coverage with...
# i-need-help
b
Is there a way to calculate the code coverage in component testing with the nextjs turbopack rather than webpack.
a
👀
I am not sure I've seen this done yet. I'd need to look into how Turbopack works - does it support code coverage out of the box? We only have support for webpack/vite right now via
@cypress/code-coverage
, but it is possible this will work for Next.js + Turbopack, too. Did you try using
@cypress/code-coverage
?
There's info on React/webpack here: https://muratkerem.gitbook.io/cctdd/ch30-appendix/combined-code-coverage might be useful as a starting point. I can take a look at trying to set up Next + Turbo, but I won't be able to get to that until next week.