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

Switching to Composition API is removing file from coverage #455

Closed
dalmia opened this issue Feb 25, 2022 · 1 comment
Closed

Switching to Composition API is removing file from coverage #455

dalmia opened this issue Feb 25, 2022 · 1 comment

Comments

@dalmia
Copy link

dalmia commented Feb 25, 2022

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:

  • Before
    Screenshot 2022-02-25 at 5 06 30 PM

  • After
    Screenshot 2022-02-25 at 5 06 15 PM

@dalmia
Copy link
Author

dalmia commented Feb 28, 2022

duplicate of #422

@dalmia dalmia closed this as completed Feb 28, 2022
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