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
I updated vitest from 1.3.1 to 2.0.5 and @vitest/coverage-v8 from 1.3.1 to 1.6.0. Now when I run tests, the tests are passing, but whenever I'm running with the --coverage flag I get the following error:
TypeError: this.coverageProvider?.generateCoverage is not a function
❯ node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:14947:53
❯ Vitest.runFiles node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:14955:12
❯ Vitest.start node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:14804:7
❯ startVitest node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:15893:7
❯ start node_modules/vitest/dist/chunks/cac.DGgmCKmU.js:1499:17
❯ CAC.run node_modules/vitest/dist/chunks/cac.DGgmCKmU.js:1479:3
Describe the bug
I updated
vitest
from 1.3.1 to 2.0.5 and@vitest/coverage-v8
from 1.3.1 to 1.6.0. Now when I run tests, the tests are passing, but whenever I'm running with the--coverage
flag I get the following error:TypeError: this.coverageProvider?.generateCoverage is not a function ❯ node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:14947:53 ❯ Vitest.runFiles node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:14955:12 ❯ Vitest.start node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:14804:7 ❯ startVitest node_modules/vitest/dist/chunks/cli-api.OKfd3qJ0.js:15893:7 ❯ start node_modules/vitest/dist/chunks/cac.DGgmCKmU.js:1499:17 ❯ CAC.run node_modules/vitest/dist/chunks/cac.DGgmCKmU.js:1479:3
This is my
vitest.config.ts
:Reproduction
Run
vitest run --coverage
with@vitest/coverage-v8
installed.System Info
Used Package Manager
npm
Validations
The text was updated successfully, but these errors were encountered: