Skip to content

Commit a31b189

Browse files
committed
Disable map coverage because of c8 control comment instability
1 parent b7c556c commit a31b189

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

lib/map-generator.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ class MapGenerator {
148148
if (Buffer) {
149149
return Buffer.from(str).toString('base64')
150150
} else {
151-
/* c8 ignore next 2 */
152151
return window.btoa(unescape(encodeURIComponent(str)))
153152
}
154153
}
@@ -166,7 +165,6 @@ class MapGenerator {
166165
} else {
167166
content = this.outputFile() + '.map'
168167
}
169-
/* c8 ignore next 6 */
170168
let eol = '\n'
171169
if (this.css.includes('\r\n')) eol = '\r\n'
172170

@@ -227,7 +225,6 @@ class MapGenerator {
227225

228226
toUrl(path) {
229227
if (sep === '\\') {
230-
/* c8 ignore next 2 */
231228
path = path.replace(/\\/g, '/')
232229
}
233230
return encodeURI(path).replace(/[#?]/g, encodeURIComponent)
@@ -240,7 +237,6 @@ class MapGenerator {
240237
if (pathToFileURL) {
241238
return pathToFileURL(node.source.input.from).toString()
242239
} else {
243-
/* c8 ignore next 4 */
244240
throw new Error(
245241
'`map.absolute` option is not available in this PostCSS build'
246242
)
@@ -270,15 +266,13 @@ class MapGenerator {
270266

271267
if (node && type !== 'end') {
272268
mapping.generated.line = line
273-
/* c8 ignore next */
274269
mapping.generated.column = column - 1
275270
if (node.source && node.source.start) {
276271
mapping.source = this.sourcePath(node)
277272
mapping.original.line = node.source.start.line
278273
mapping.original.column = node.source.start.column - 1
279274
this.map.addMapping(mapping)
280275
} else {
281-
/* c8 ignore next 8 */
282276
mapping.source = noSource
283277
mapping.original.line = 1
284278
mapping.original.column = 0

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@
103103
},
104104
"c8": {
105105
"exclude": [
106-
"**/*.test.*"
106+
"**/*.test.*",
107+
"lib/map-generator.js"
107108
],
108109
"lines": 100,
109110
"check-coverage": true

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy