Not able to generate code coverage report on running vue 3 (typescript) application on a headless mode #29276
Labels
CT
Issue related to component testing
stage: needs investigating
Someone from Cypress needs to look at this
stale
no activity on this issue for a long period
topic: code coverage
Current behavior
I am trying to generate the cypress code coverage report when i run the tests on a headless mode. But it's not generating the report.
And it's creating the report on interactive mode
(cypress open -e2e)
.Vue project dependency version:
"vue": "^3.4.21",
"vite": "^5.2.7",
And i am using
"nyc": "^15.1.0"
and"vite-plugin-istanbul": "^6.0.0"
to generate the report.Even i tried adding
"@istanbuljs/nyc-config-typescript": "^1.0.2"
and.nycrc
configuration also not working.Desired behavior
No response
Test code to reproduce
vite.config.ts
cypress.config.js
import coverageTask from "@cypress/code-coverage/task";
cypress/support/e2e.ts
import '@cypress/code-coverage/support'
command:
cypress run --e2e
Cypress Version
13.7.2
Node version
20.12.0
Operating System
macOs 14
Debug Logs
Other
No response
The text was updated successfully, but these errors were encountered: