Skip to content

Commit

Permalink
Move from Jest to uvu
Browse files Browse the repository at this point in the history
  • Loading branch information
ai committed Dec 29, 2021
1 parent e3e8c08 commit 748ef8e
Show file tree
Hide file tree
Showing 20 changed files with 1,383 additions and 3,278 deletions.
3 changes: 1 addition & 2 deletions lib/autoprefixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ function timeCapsule(result, prefixes) {
if (Object.keys(prefixes.add).length > 2) {
return
}

/* istanbul ignore next */
/* c8 ignore next 11 */
result.warn(
'Autoprefixer target browsers do not need any prefixes.' +
'You do not need Autoprefixer anymore.\n' +
Expand Down
2 changes: 1 addition & 1 deletion lib/hacks/grid-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -532,7 +532,7 @@ function insertAreas(css, isDisabled) {
if (lastRule) {
lastRuleIndex = css.index(lastRule)
} else {
/* istanbul ignore next */
/* c8 ignore next 2 */
lastRuleIndex = -1
}

Expand Down
34 changes: 13 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"postcss-plugin"
],
"scripts": {
"test": "jest --coverage && eslint . bin/* && size-limit",
"unit": "jest"
"unit": "uvu . '\\.test\\.js$'",
"test": "c8 pnpm unit && eslint . bin/* && size-limit"
},
"main": "lib/autoprefixer.js",
"bin": "bin/autoprefixer",
Expand Down Expand Up @@ -43,16 +43,18 @@
"devDependencies": {
"@logux/eslint-config": "^46.1.1",
"@size-limit/preset-small-lib": "7.0.5",
"c8": "^7.10.0",
"clean-publish": "^3.4.4",
"eslint": "^8.5.0",
"eslint-config-standard": "^16.0.3",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prefer-let": "^3.0.1",
"eslint-plugin-promise": "^6.0.0",
"jest": "^27.4.5",
"nanospy": "^0.4.0",
"postcss": "^8.4.5",
"size-limit": "^7.0.5"
"size-limit": "^7.0.5",
"uvu": "^0.5.2"
},
"prettier": {
"arrowParens": "avoid",
Expand Down Expand Up @@ -92,24 +94,14 @@
"import/order": "off"
}
}
],
"globals": {
"beforeEach": "readonly",
"afterEach": "readonly",
"afterAll": "readonly",
"describe": "readonly",
"expect": "readonly",
"jest": "readonly",
"it": "readonly"
}
]
},
"jest": {
"testEnvironment": "node",
"coverageThreshold": {
"global": {
"lines": 100
}
}
"c8": {
"exclude": [
"**/*.test.*"
],
"lines": 100,
"check-coverage": true
},
"clean-publish": {
"cleanDocs": true
Expand Down
Loading

0 comments on commit 748ef8e

Please sign in to comment.