Skip to content

Commit 748ef8e

Browse files
committed
Move from Jest to uvu
1 parent e3e8c08 commit 748ef8e

20 files changed

Lines changed: 1383 additions & 3278 deletions

lib/autoprefixer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@ function timeCapsule(result, prefixes) {
4040
if (Object.keys(prefixes.add).length > 2) {
4141
return
4242
}
43-
44-
/* istanbul ignore next */
43+
/* c8 ignore next 11 */
4544
result.warn(
4645
'Autoprefixer target browsers do not need any prefixes.' +
4746
'You do not need Autoprefixer anymore.\n' +

lib/hacks/grid-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,7 @@ function insertAreas(css, isDisabled) {
532532
if (lastRule) {
533533
lastRuleIndex = css.index(lastRule)
534534
} else {
535-
/* istanbul ignore next */
535+
/* c8 ignore next 2 */
536536
lastRuleIndex = -1
537537
}
538538

package.json

Lines changed: 13 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
"postcss-plugin"
1414
],
1515
"scripts": {
16-
"test": "jest --coverage && eslint . bin/* && size-limit",
17-
"unit": "jest"
16+
"unit": "uvu . '\\.test\\.js$'",
17+
"test": "c8 pnpm unit && eslint . bin/* && size-limit"
1818
},
1919
"main": "lib/autoprefixer.js",
2020
"bin": "bin/autoprefixer",
@@ -43,16 +43,18 @@
4343
"devDependencies": {
4444
"@logux/eslint-config": "^46.1.1",
4545
"@size-limit/preset-small-lib": "7.0.5",
46+
"c8": "^7.10.0",
4647
"clean-publish": "^3.4.4",
4748
"eslint": "^8.5.0",
4849
"eslint-config-standard": "^16.0.3",
4950
"eslint-plugin-import": "^2.25.3",
5051
"eslint-plugin-node": "^11.1.0",
5152
"eslint-plugin-prefer-let": "^3.0.1",
5253
"eslint-plugin-promise": "^6.0.0",
53-
"jest": "^27.4.5",
54+
"nanospy": "^0.4.0",
5455
"postcss": "^8.4.5",
55-
"size-limit": "^7.0.5"
56+
"size-limit": "^7.0.5",
57+
"uvu": "^0.5.2"
5658
},
5759
"prettier": {
5860
"arrowParens": "avoid",
@@ -92,24 +94,14 @@
9294
"import/order": "off"
9395
}
9496
}
95-
],
96-
"globals": {
97-
"beforeEach": "readonly",
98-
"afterEach": "readonly",
99-
"afterAll": "readonly",
100-
"describe": "readonly",
101-
"expect": "readonly",
102-
"jest": "readonly",
103-
"it": "readonly"
104-
}
97+
]
10598
},
106-
"jest": {
107-
"testEnvironment": "node",
108-
"coverageThreshold": {
109-
"global": {
110-
"lines": 100
111-
}
112-
}
99+
"c8": {
100+
"exclude": [
101+
"**/*.test.*"
102+
],
103+
"lines": 100,
104+
"check-coverage": true
113105
},
114106
"clean-publish": {
115107
"cleanDocs": true

0 commit comments

Comments
 (0)