Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add vitest #642

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
1 change: 0 additions & 1 deletion bin/father.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#!/usr/bin/env node

require('v8-compile-cache');
require('../dist/cli/cli')
.run()
.catch((e) => {
Expand Down
18 changes: 0 additions & 18 deletions jest.config.ts

This file was deleted.

14 changes: 6 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
"format": "prettier --write .",
"prepare": "husky install",
"release": "esno scripts/release.ts",
"test": "jest",
"test:cov": "jest --collectCoverage"
"test": "vitest run",
"test:cov": "vitest run --coverage"
},
"commitlint": {
"extends": [
Expand Down Expand Up @@ -61,29 +61,27 @@
"minimatch": "3.1.2",
"tsconfig-paths": "4.0.0",
"typescript": "~4.8.4",
"typescript-transform-paths": "3.4.6",
"v8-compile-cache": "2.3.0"
"typescript-transform-paths": "3.4.6"
},
"devDependencies": {
"@commitlint/cli": "^17.6.1",
"@commitlint/config-conventional": "^17.6.1",
"@swc/core": "^1.3.53",
"@types/jest": "^27",
"@types/loader-runner": "2.2.4",
"@types/minimatch": "3.0.5",
"@types/node": "^18.15.13",
"@umijs/test": "^4.0.68",
"@vitest/coverage-c8": "^0.31.0",
"esno": "^0.16.3",
"git-repo-info": "^2.1.1",
"husky": "^8.0.3",
"jest": "^27",
"jest-mock-process": "^1.5.1",
"lint-staged": "^13.2.1",
"prettier": "^2.8.7",
"prettier-plugin-organize-imports": "^3.2.2",
"prettier-plugin-packagejson": "^2.4.3",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1",
"vitest": "0.30.1",
"vitest-mock-process": "^1.0.4",
"zx": "^4.3.0"
},
"packageManager": "pnpm@7.3.0",
Expand Down