We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 32a2f8d commit 7ef3147Copy full SHA for 7ef3147
support-utils.js
@@ -137,8 +137,9 @@ const filterSupportFilesFromCoverage = (
137
function fixSourcePaths(coverage) {
138
Object.values(coverage).forEach((file) => {
139
const { path: absolutePath, inputSourceMap } = file
140
+ if (!absolutePath) return
141
const fileName = /([^\/\\]+)$/.exec(absolutePath)[1]
- if (!inputSourceMap || !fileName) return
142
+ if (!fileName) return
143
144
if (inputSourceMap.sourceRoot) inputSourceMap.sourceRoot = ''
145
inputSourceMap.sources = inputSourceMap.sources.map((source) =>
0 commit comments