Skip to content

Style tag in SFC should not result in Jest coverage results #69

@MatteoGabriele

Description

@MatteoGabriele

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

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

Current behavior
Jest code coverage is apparently checking also tested CSS in the style tag

Expected behavior
Jest code coverage shouldn't consider the style tag, or even the template tag, as code to be covered because it is not part of the component logic.

Minimal reproduction of the problem with instructions
There's probably no need for a reproduction, the image should be fine

screen shot 2018-04-11 at 11 53 04 am

What is the motivation / use case for changing the behavior?
CSS is not part of the component logic

Please tell us about your environment:
Visual Studio Code
Yarn 1.5.1

  • jest-vue-preprocessor: 1.1.X
    "jest-vue-preprocessor": "^1.3.1"

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

  • Platform: [ OSX | Linux | Windows ]
    OSX latest

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