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 problem for Vue component with src attribute #44

Open
grofzero opened this issue Nov 19, 2017 · 0 comments
Open

Coverage problem for Vue component with src attribute #44

grofzero opened this issue Nov 19, 2017 · 0 comments

Comments

@grofzero
Copy link

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] feature request
[ ] support request

Current behavior
First I generate a coverage json for a component, that has the js given with src attribute. After that I cannot use istanbul to generate html reports. I think the problem is, that in the source I have a separate vue and js file, but the coverage report is generated for the appended file. Istanbul says:
"TypeError: Cannot read property 'text' of undefined" in istanbul html js.

Expected behavior
To generate html reports from coverage json generated by jest

Minimal reproduction of the problem with instructions
jest --coverage

istanbul report html

Please tell us about your environment:
VS Code, yarn

  • jest-vue-preprocessor: 1.1.X
    1.3.1

  • Node version : [ OSX | Linux | Windows ]
    8.9.1

  • Platform: [ OSX | Linux | Windows ]
    Windows

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