ramprakash jagadeesan
ramprakash jagadeesan

Reputation: 284

Vue Jest Framework | Uncovered lines are show as invalid

I am using jest framework for vue.js unit test cases. My issue is my file lines of code is 31. But showing uncovered line is 39, 40. Is there any issue in config related things.

enter image description here

enter image description here

What is the issue here. I am facing this issue in all my .vue files. How to rectify this

Upvotes: 1

Views: 904

Answers (1)

ramprakash jagadeesan
ramprakash jagadeesan

Reputation: 284

"mapCoverage": true

Add this link in your jest.config.json file, then try it will work.

Upvotes: -1

Related Questions