Open
Description
Description
Not clear on how to do code coverage for component testing.
Why is this needed?
It has been really helpful to me and my organization to be able to use the code coverage reports from e2e/integration/unit tests to guide our testing and development. Having component level coverage tests would help in a similar way.
More Info
- Comment: Document configuring code coverage for component tests (webpack, vite) #5519
- Official Docs: https://docs.cypress.io/guides/tooling/code-coverage
Acceptance Criteria
- Document how to set up Code Coverage for Webpack and Vite with simple example repositories
- See this issue for lots of info - ideally we should document doing code coverage w/ Webpack and Vite workflows, and provide 2 example repos.
- If we can add something to docs, that might be good - we've got some info on E2E, but not much for CT (although process is mostly the same): https://docs.cypress.io/guides/tooling/code-coverage