Skip to content

Commit f8435c1

Browse files
committed
chore: migrate to vitest
1 parent 379d628 commit f8435c1

File tree

4 files changed

+725
-217
lines changed

4 files changed

+725
-217
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ jobs:
2121
- run: pnpm install
2222
- run: pnpm lint
2323
- run: pnpm build
24-
- run: pnpm mocha ./test/*.test.*
24+
- run: pnpm vitest run
2525
# - uses: codecov/codecov-action@v3

package.json

+2-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"prepack": "unbuild",
2828
"play": "webpack --config ./playground/webpack.config.mjs",
2929
"release": "pnpm test && changelogen --release && npm publish && git push --follow-tags",
30-
"test": "pnpm lint && mocha ./test/*.test.*"
30+
"test": "pnpm lint && vitest run"
3131
},
3232
"dependencies": {
3333
"ansi-escapes": "^7.0.0",
@@ -40,7 +40,6 @@
4040
},
4141
"devDependencies": {
4242
"@babel/standalone": "^7.26.2",
43-
"@types/mocha": "^10.0.9",
4443
"@types/node": "^22.9.0",
4544
"automd": "^0.3.12",
4645
"chalk": "^5.3.0",
@@ -49,10 +48,10 @@
4948
"eslint-config-unjs": "^0.4.1",
5049
"jiti": "^2.4.0",
5150
"memory-fs": "^0.5.0",
52-
"mocha": "^10.8.2",
5351
"prettier": "^3.3.3",
5452
"typescript": "^5.6.3",
5553
"unbuild": "^2.0.0",
54+
"vitest": "^2.1.4",
5655
"webpack": "^5.96.1",
5756
"webpack-cli": "^5.1.4"
5857
},

0 commit comments

Comments
 (0)