Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(coverage): trim URL parameters from file paths in istanbul covera…
- Loading branch information
1 parent
6c3d708
commit 840f5c5
Showing
6 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { defineComponent, ref } from 'vue' | ||
|
||
export default defineComponent({ | ||
name: 'Counter', | ||
|
||
setup() { | ||
const count = ref(0) | ||
return { count } | ||
}, | ||
|
||
methods: { | ||
uncoveredMethod() { | ||
return 'This line should not be covered' | ||
}, | ||
|
||
coveredMethod() { | ||
return 'This line should be covered' | ||
}, | ||
}, | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<script lang="ts" src="./Counter.component.ts"></script> | ||
|
||
<template> | ||
<button @click="count++"> | ||
{{ count }} | ||
</button> | ||
|
||
<div v-if="count > 10"> | ||
{{ uncoveredMethod() }} | ||
</div> | ||
<div v-else> | ||
{{ coveredMethod() }} | ||
</div> | ||
</template> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import CounterComponent from './Counter.component' | ||
import CounterVue from './Counter.vue' | ||
|
||
export { CounterComponent, CounterVue } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters