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

Missing file in coverage report (Jest) #1148

Closed
maxpou opened this issue Dec 5, 2017 · 5 comments
Closed

Missing file in coverage report (Jest) #1148

maxpou opened this issue Dec 5, 2017 · 5 comments

Comments

@maxpou
Copy link

maxpou commented Dec 5, 2017

Hi,

I'm getting coverage issues with Jest.
When I set mapCoverage: true, some files disapear from the coverage report.

Example:

# mapCoverage:true
src/api                |      100 |      100 |      100 |      100 |                |
  index.js             |      100 |      100 |      100 |      100 |                |
  linkHeaderParser.js  |      100 |      100 |      100 |      100 |                |
  repositories.js      |      100 |      100 |      100 |      100 |                |
src/components         |     7.84 |     2.94 |     5.88 |    11.76 |                |
  FileExplorer.vue     |        0 |        0 |        0 |        0 |... 51,52,53,54 |
  MenuUserRepoList.vue |        0 |        0 |        0 |        0 |... 32,33,34,35 |
  Profile.vue          |        0 |        0 |        0 |        0 |... 57,58,59,60 |
  Readme.vue           |       80 |       50 |       50 |       80 |             23 |

# mapCoverage:false
src/api                |    92.86 |    84.21 |      100 |    92.86 |                |
  index.js             |    84.62 |    66.67 |      100 |    84.62 |          10,26 |
  linkHeaderParser.js  |      100 |      100 |      100 |      100 |                |
  repositories.js      |      100 |      100 |      100 |      100 |                |
  users.js             |      100 |      100 |      100 |      100 |                |
src/components         |     53.4 |    29.73 |    40.74 |    51.61 |                |
  FileExplorer.vue     |        0 |        0 |        0 |        0 |... 51,52,53,54 |
  FooterBar.vue        |    92.86 |       50 |      100 |      100 |        4,5,6,7 |
  MenuNavBar.vue       |      100 |       50 |      100 |      100 |       20,21,22 |
  MenuUserRepoList.vue |        0 |        0 |        0 |        0 |... 32,33,34,35 |
  Profile.vue          |        0 |        0 |        0 |        0 |... 57,58,59,60 |
  Readme.vue           |    94.74 |    57.14 |       80 |    92.86 |             25 |
  RepoListItem.vue     |      100 |       50 |    66.67 |      100 |       45,46,47 |

(I remove some file for a better readability. See full coverage report (link to travis build):

All sources files are available here: https://github.com/maxpou/gitvub and jest config here

Thank you

@LinusBorg
Copy link
Contributor

LinusBorg commented Dec 6, 2017

that would probably an issue to report at https://github.com/eddyerburgh/vue-jest - since it only seems to affect .vue files. Otherwise, this is a jest-specific qustion and not related to the template itself.

/ping @eddyerburgh

Edit: With mapCoverage:false, the user.js file isn't in the list, with true it is - so just the other way around...

@eddyerburgh
Copy link
Contributor

Related to this issue—jestjs/jest#4509 (comment)

I'll look into this issue, I'm unsure whether it's a problem with vue-jest or jest. @maxpou I'm copying your issue to the vue-jest repo

@LinusBorg
Copy link
Contributor

@eddyerburgh Please link the new issue here and close this one ok? thanks

@eddyerburgh
Copy link
Contributor

Issue in vue-jest— vuejs/vue-jest#32

I don't have permission to close this issue 😉

@maxpou
Copy link
Author

maxpou commented Dec 6, 2017

Thanks guys. Then, I will keep an eye on vue-jest issue.

Closing, see vuejs/vue-jest#32

@maxpou maxpou closed this as completed Dec 6, 2017
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

3 participants