How to ignore the style tag to calculate the unit test coverage in a Vue component?
This is my Vue component:
<template>
<div class="ob-card">
<slot />
</div>
</template>
<style scoped>
.ob-card {
width: 10px;
}
</style>
The coverage result :
-----------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------------------------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 50 | 100 |
ObCard.vue | 100 | 100 | 50 | 100 |
When I remove the <style> tag it's 100 for every columns:
-----------------------------|---------|----------|---------|---------|-------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
-----------------------------|---------|----------|---------|---------|-------------------
All files | 100 | 100 | 100 | 100 |
ObCard.vue | 100 | 100 | 100 | 100 |