Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No coverage picked up by Cypress #232

Closed
mildfuzz opened this issue Apr 4, 2024 · 1 comment
Closed

No coverage picked up by Cypress #232

mildfuzz opened this issue Apr 4, 2024 · 1 comment

Comments

@mildfuzz
Copy link

mildfuzz commented Apr 4, 2024

using NextJS@latest, I have the following config:

swcPlugins: [
      [
        'swc-plugin-coverage-instrument',
        {esModules: true, reportLogic: true, produceSourceMap: true},
      ],
    ],

and using @cypress/code-coverage plugin, cypress reports no instrumentation. I think I am missing a step but I can't figure out what it might be.

I tried adding "instrumenter": "nyc", to the nyc stanza in my package.json, but this leads to this issue: cypress-io/code-coverage#804

@kwonoj
Copy link
Owner

kwonoj commented Apr 4, 2024

@kwonoj kwonoj closed this as completed Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants