vuejs / vue-jest

Jest Vue transformer
MIT License
746 stars 157 forks source link

Switching to Composition API is removing file from coverage #455

Closed dalmia closed 2 years ago

dalmia commented 2 years ago

Hi everyone,

For some reason, upon switching one of my components to the Composition API from the Options API, Jest stops including that component in the coverage. You can view this Pull Request where 3 components are being modified. The component that I am talking about is: src/components/UI/Buttons/IconButton.vue

NOTE: the tests are being correctly run. Just the main file is not being included in the coverage

Here is a screenshot of the output of npm run test:unit before and after this change:

dalmia commented 2 years ago

duplicate of #422