Open

Description
I've been trying to get jest to work properly with a Vue 2 + Vite project. Jest reports pass/fail as I would expect, but the coverage report seems incorrect. Link to the repro here: https://github.com/qkjosh/vue-jest-coverage
package.json
"devDependencies": {
"@babel/core": "7.18.5",
"@babel/preset-env": "^7.18.2",
"@vue/test-utils": "^1.2.2",
"@vue/vue2-jest": "^28.0.0",
"babel-jest": "28.1.1",
"jest": "28.1.1",
"jest-environment-jsdom": "28.1.1",
"vite": "2.9.12",
"vite-plugin-vue2": "^2.0.1"
}
Given an incomplete test suite, the coverage report indicates 100% coverage and seems to treat the whole SFC component as one statement. Do I have something completely misconfigured, or is the coverage report broken?
Metadata
Metadata
Assignees
Labels
No labels