vire / jest-vue-preprocessor

Preprocessor that allows importing of .vue files in jest tests
MIT License
130 stars 27 forks source link

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

Open MatteoGabriele opened 6 years ago

MatteoGabriele commented 6 years ago

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