Skip to content

Commit 4dbc931

Browse files
authored
add c8 test coverage (#533)
1 parent fb2db6f commit 4dbc931

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

lib/process-content.js

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ module.exports = function processContent(
2121
// SugarSS support:
2222
if (ext === ".sss") {
2323
if (!sugarss) {
24+
/* c8 ignore next 3 */
2425
try {
2526
sugarss = require("sugarss")
2627
} catch {} // Ignore

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
},
2828
"devDependencies": {
2929
"ava": "^5.0.0",
30+
"c8": "^8.0.0",
3031
"eslint": "^8.2.0",
3132
"eslint-config-problems": "^7.0.0",
3233
"eslint-plugin-prettier": "^4.0.0",
@@ -42,7 +43,7 @@
4243
"ci": "eslint . && ava",
4344
"lint": "eslint . --fix",
4445
"pretest": "npm run lint",
45-
"test": "ava"
46+
"test": "c8 ava"
4647
},
4748
"eslintConfig": {
4849
"extends": "eslint-config-problems",

0 commit comments

Comments
 (0)