Skip to content

Coverage problem for Vue component with src attribute #44

@grofzero

Description

@grofzero

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions