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

Cypress cannot see the window.__coverage__ object #843

Open
Curs3W4ll opened this issue May 30, 2024 · 0 comments
Open

Cypress cannot see the window.__coverage__ object #843

Curs3W4ll opened this issue May 30, 2024 · 0 comments

Comments

@Curs3W4ll
Copy link

Curs3W4ll commented May 30, 2024

Logs and screenshots
Screenshot 2024-05-30 at 13 03 01

Versions

  • What is this plugin's version? If this is NOT the latest released version, can you try the latest version, please? 3.12.39 (latest)
  • If the plugin worked before in version X but stopped after upgrading to version Y, please try the released versions between X and Y to see where the breaking change was.
  • What is the Cypress version? 13.10.0
  • What is your operating system? MacOS
  • What is the shell? OMZ
  • What is the Node version? 22.2.0
  • What is the NPM version? 10.7.0
  • How do you instrument your application? Cypress does not instrument web application code, so you must do it yourself. Using vite-plugin-istanbul
  • When running tests, if you open the web application in a regular browser and open DevTools, do you see window.__coverage__ object? Can you paste a screenshot? yes (screenshot above)
  • Is there a .nyc_output folder? Is there a .nyc_output/out.json file? Is it empty? Can you paste at least part of it so we can see the keys and file paths? yes, but empty
  • Do you have any custom NYC settings in package.json (nyc object) or in other NYC config files? no
  • Do you run Cypress tests in a Docker container? no

Describe the bug
When launching E2E tests using Cypress with a nuxt 3 stack, I run into the following problem:

  • The window.__coverage__ object is preset (see screenshot), but Cypress does not manage to find it

Link to the repo
Repro repo

npm install
npm run test:e2e:dev
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

1 participant