Can we do test coverage for component testing?
aniketicloud opened this issue · 2 comments
aniketicloud commented
Just like Vitest/Jest, can we do a code coverage in component testing in Playwright?
mxschmitt commented
In theory, the same concept of this repository can be applied to component testing. This would require adjusting the ctViteConfig to include the coverage plugin and collect it.
aniketicloud commented
Thank you for adding the component testing coverage example. It is in ct-react-vite
branch.
https://github.com/mxschmitt/playwright-test-coverage/tree/ct-react-vite