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

Coverage report is complaining about non existing lines of code #675

Closed
Envoy49 opened this issue Dec 22, 2022 Discussed in #674 · 0 comments
Closed

Coverage report is complaining about non existing lines of code #675

Envoy49 opened this issue Dec 22, 2022 Discussed in #674 · 0 comments

Comments

@Envoy49
Copy link

Envoy49 commented Dec 22, 2022

Discussed in #674

Originally posted by Envoy49 December 22, 2022
Have an issue after an update opened here as well vuejs/vue-jest#522, where tests coverage report is complaining about non existing lines of code.
Since I am using NUXT and had to upgrade to the latest NUXT Bridge.
Code coverage is complaining about my VUE code files not being covered.
Whereas most of them were covered on 100% according to old and correct report..
After an update coverage is complaining about lines which don't exist at all.
My overall coverage dropped from 70% to 40% due to this wrong report
Below is the screenshot of before and after results.

image

My current package.json

"dependencies": {
   "nuxt-edge": "latest",
 },

 "devDependencies": {
   "@vue/test-utils": "1.3.3",
   "@vue/vue2-jest": "29.0.0",  
   "vue-template-compiler": "^2.7.14"
 },

My previous package.json:

"dependencies": {
   "nuxt-edge": "^2.16.0-27358576.777a4b7f",
 },

 "devDependencies": {
   "@vue/test-utils": "^1.2.2",
   "@vue/vue2-jest": "^27.0.0-alpha.4",
 },

Solution from here vuejs/vue-jest#480 (comment) didn't help in my case

@Envoy49 Envoy49 closed this as completed Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant