You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently when you install the test addon, it does not install a coverage provider. When you try to run coverage it fails. To debug you need to look at the console, which is non-intuitive. Then you need to add a coverage provider (it suggests V8) and then restart.
We should just install the coverage provider out of the box. And if we think istanbul is the better choice, we should install that and configure Vitest accordingly. (I'm still on the fence about v8 vs instanbul!).
The text was updated successfully, but these errors were encountered:
During the addon's postinstall, detect if either @vitest/coverage-v8 or @vitest/coverage-istanbul is installed. If neither of those are, automatically install @vitest/coverage-v8, with a log line explaining why.
... That means we won't try to be smart and detect which provider is potentially configured already, we assume that if a package is installed, it is correctly configured.
Currently when you install the test addon, it does not install a coverage provider. When you try to run coverage it fails. To debug you need to look at the console, which is non-intuitive. Then you need to add a coverage provider (it suggests V8) and then restart.
We should just install the coverage provider out of the box. And if we think istanbul is the better choice, we should install that and configure Vitest accordingly. (I'm still on the fence about v8 vs instanbul!).
The text was updated successfully, but these errors were encountered: