We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5670f05 commit bc2ad85Copy full SHA for bc2ad85
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 (!inputSourceMap) 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