|
13 | 13 | "postcss-plugin" |
14 | 14 | ], |
15 | 15 | "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" |
18 | 18 | }, |
19 | 19 | "main": "lib/autoprefixer.js", |
20 | 20 | "bin": "bin/autoprefixer", |
|
43 | 43 | "devDependencies": { |
44 | 44 | "@logux/eslint-config": "^46.1.1", |
45 | 45 | "@size-limit/preset-small-lib": "7.0.5", |
| 46 | + "c8": "^7.10.0", |
46 | 47 | "clean-publish": "^3.4.4", |
47 | 48 | "eslint": "^8.5.0", |
48 | 49 | "eslint-config-standard": "^16.0.3", |
49 | 50 | "eslint-plugin-import": "^2.25.3", |
50 | 51 | "eslint-plugin-node": "^11.1.0", |
51 | 52 | "eslint-plugin-prefer-let": "^3.0.1", |
52 | 53 | "eslint-plugin-promise": "^6.0.0", |
53 | | - "jest": "^27.4.5", |
| 54 | + "nanospy": "^0.4.0", |
54 | 55 | "postcss": "^8.4.5", |
55 | | - "size-limit": "^7.0.5" |
| 56 | + "size-limit": "^7.0.5", |
| 57 | + "uvu": "^0.5.2" |
56 | 58 | }, |
57 | 59 | "prettier": { |
58 | 60 | "arrowParens": "avoid", |
|
92 | 94 | "import/order": "off" |
93 | 95 | } |
94 | 96 | } |
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 | + ] |
105 | 98 | }, |
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 |
113 | 105 | }, |
114 | 106 | "clean-publish": { |
115 | 107 | "cleanDocs": true |
|
0 commit comments