feat: migrate from jest to vitest

Signed-off-by: Rui Chen <rui@chenrui.dev>
This commit is contained in:
Rui Chen 2025-06-09 20:52:29 -04:00
parent 8836085300
commit 1bd0d58702
No known key found for this signature in database
GPG key ID: 6577287BDCA70840
8 changed files with 1577 additions and 3281 deletions

View file

@ -7,7 +7,8 @@
"scripts": {
"build": "ncc build src/main.ts --minify",
"build-debug": "ncc build src/main.ts --v8-cache --source-map",
"test": "jest",
"typecheck": "tsc --noEmit",
"test": "vitest --coverage",
"fmt": "prettier --write \"src/**/*.ts\" \"__tests__/**/*.ts\"",
"fmtcheck": "prettier --check \"src/**/*.ts\" \"__tests__/**/*.ts\"",
"updatetag": "git tag -d v2 && git push origin :v2 && git tag -a v2 -m '' && git push origin v2"
@ -30,16 +31,14 @@
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/jest": "^29.5.14",
"@types/mime-types": "^3.0.1",
"@types/node": "^22.15.21",
"@vercel/ncc": "^0.38.3",
"jest": "^29.3.1",
"jest-circus": "^29.3.1",
"@vitest/coverage-v8": "^3.1.4",
"prettier": "3.5.3",
"ts-jest": "^29.3.4",
"ts-node": "^10.9.2",
"typescript": "^5.8.3",
"typescript-formatter": "^7.2.2"
"typescript-formatter": "^7.2.2",
"vitest": "^3.1.4"
}
}