Skip to content

Coverage report doesn't show for Vue components that don't have executable JS code #147

Closed
@saifulss

Description

@saifulss

When running Jest for test coverage, a Vue component (Single File Component) won't show up in the coverage report unless it has at least 1 line of executable JS code.

An example of executable JS code, is adding a method to the component (even if you don't use the method). Once there's at least 1 line, the file will show up in the coverage report.

I use the coverage report to see which files have yet to be covered by the coverage report. Even the simple Vue components with no executable JS code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions