Skip to content

Commit

Permalink
add c8 test coverage (#533)
Browse files Browse the repository at this point in the history
  • Loading branch information
romainmenke committed Jul 20, 2023
1 parent fb2db6f commit 4dbc931
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/process-content.js
Expand Up @@ -21,6 +21,7 @@ module.exports = function processContent(
// SugarSS support:
if (ext === ".sss") {
if (!sugarss) {
/* c8 ignore next 3 */
try {
sugarss = require("sugarss")
} catch {} // Ignore
Expand Down
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -27,6 +27,7 @@
},
"devDependencies": {
"ava": "^5.0.0",
"c8": "^8.0.0",
"eslint": "^8.2.0",
"eslint-config-problems": "^7.0.0",
"eslint-plugin-prettier": "^4.0.0",
Expand All @@ -42,7 +43,7 @@
"ci": "eslint . && ava",
"lint": "eslint . --fix",
"pretest": "npm run lint",
"test": "ava"
"test": "c8 ava"
},
"eslintConfig": {
"extends": "eslint-config-problems",
Expand Down

0 comments on commit 4dbc931

Please sign in to comment.