Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(coverage): flaky c8 coverage caused by parallel sourcemap constru…
…cting - prevent overwriting already loaded sourcemaps by filtering out "broken" sourcemaps
- Loading branch information
1 parent
e641a11
commit b97b565
Showing
3 changed files
with
242 additions
and
33 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 |
---|---|---|
@@ -1,7 +1,20 @@ | ||
<script setup lang="ts"> | ||
const defined = MY_CONSTANT | ||
/* eslint-disable no-console */ | ||
if (defined) | ||
console.log('Covered condition') | ||
else | ||
console.log('Uncovered condition') | ||
</script> | ||
|
||
<template> | ||
{{ defined }} | ||
</template> | ||
|
||
<!-- Style block triggers a specific condition where sourcemaps used to break randomly --> | ||
<style lang="css" scoped> | ||
body { | ||
background-color: #FFF; | ||
} | ||
</style> |