-
Notifications
You must be signed in to change notification settings - Fork 16
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
[question]: The plugin works for e2e test coverage, but can not combine the unit test coverage result #29
Comments
Hi @stevez, this is weird indeed and not something i've run into before. I'll see what i can find, however this is probably not anything related to this plugin rather in how code-coverage reporters works. Or rather the code-coverage merger. It's also really hard to understand/debug without having any of the data of how the coverage files looks like. |
I finally find a workaround: I used babel istanbul plugin inside the vite react plugin, for example in vite.config.js
I found this solution in the stackoverflow, it is a very smart trick. |
Closing as the original issue has a workaround |
@stevez could you please share all configurations and setting of how you made E2E Playwright tests work with this plugin? |
@VasylQA, it ended up it didn’t use this plugin, here is how I used: |
I wonder how could I resolve this? I noticed the json file using your plugin includes the sourcemap, but my unit tests result do not have them, do you think this might cause the issue? and how can I include the source map in unit tests coverage?
The text was updated successfully, but these errors were encountered: