Skip to content
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

Vitest@0.29.8 can not genetate the coverage report #3125

Closed
6 tasks done
CherishTheYouth opened this issue Apr 3, 2023 · 3 comments · Fixed by #3126
Closed
6 tasks done

Vitest@0.29.8 can not genetate the coverage report #3125

CherishTheYouth opened this issue Apr 3, 2023 · 3 comments · Fixed by #3126

Comments

@CherishTheYouth
Copy link

Describe the bug

When use Vitest@0.29.8 to run script vitest run coverage, it can not generate the coverage report.
Either use 'istanbul' or 'c8'.

Reproduction

Just have a try, it is easy to recurrence。

System Info

vitest@0.22.0 - vitest@0.29.7 runs well, vitest@0.29.8 can not generate lcov info.

Used Package Manager

yarn

Validations

@gdams
Copy link

gdams commented Apr 3, 2023

I'm seeing this error:

> vitest run --coverage

TypeError: coverageModule.getProvider is not a function
    at getCoverageProvider (file:///home/runner/work/adoptium.net/adoptium.net/node_modules/vitest/dist/chunk-integrations-coverage.e0a6acd2.js:26:2[7](https://github.com/adoptium/adoptium.net/actions/runs/4544594155/jobs/8017776233?pr=1637#step:5:8))
    at async Vitest.initCoverageProvider (file:///home/runner/work/adoptium.net/adoptium.net/node_modules/vitest/dist/chunk-node-pkg.f9696901.js:15174:29)
    at async Vitest.start (file:///home/runner/work/adoptium.net/adoptium.net/node_modules/vitest/dist/chunk-node-pkg.f9696901.js:15273:7)
    at async startVitest (file:///home/runner/work/adoptium.net/adoptium.net/node_modules/vitest/dist/chunk-node-pkg.f9696901.js:22440:5)
    at async start (file:///home/runner/work/adoptium.net/adoptium.net/node_modules/vitest/dist/cli.js:105:17)
    at async CAC.run (file:///home/runner/work/adoptium.net/adoptium.net/node_modules/vitest/dist/cli.js:7[8](https://github.com/adoptium/adoptium.net/actions/runs/4544594155/jobs/8017776233?pr=1637#step:5:9):3)

@AriPerkkio
Copy link
Member

AriPerkkio commented Apr 3, 2023

Likely duplicate of #3118.

@gdams your stack trace indicates that you are using vitest@0.29.7. Please install the latest 0.29.8.

@CherishTheYouth I'm unable to reproduce your issue without more information.

@github-actions
Copy link

github-actions bot commented Apr 3, 2023

Hello @CherishTheYouth. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants