jest-vue-preprocessor icon indicating copy to clipboard operation
jest-vue-preprocessor copied to clipboard

Style tag in SFC should not result in Jest coverage results

Open MatteoGabriele opened this issue 6 years ago • 0 comments

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

MatteoGabriele avatar Apr 11 '18 10:04 MatteoGabriele