Stand-With-Crypto / swc-web

Stand With Crypto's codebase, open sourced for community collaboration. If you care about crypto, it's time to prove it.
https://www.standwithcrypto.org/
Apache License 2.0
19 stars 3 forks source link

orchestrate e2e test coverage reporting for cypress #795

Open travisbloom-cb opened 3 months ago

travisbloom-cb commented 3 months ago

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.

eduardopicolo-cb commented 2 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: image


Potential Solution to keep an eye on:

There is an open source plugin that works with SWC transpiler, but unfortunatelly it does not work with App Router: image

Some issues to keep an eye on: https://github.com/vercel/next.js/discussions/53901 https://github.com/istanbuljs/babel-plugin-istanbul/issues/285