Skip to content

Commit

Permalink
feat: vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
suemor233 committed Feb 20, 2023
1 parent a2ec3a3 commit 7cea64f
Show file tree
Hide file tree
Showing 12 changed files with 663 additions and 22 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,8 @@ jobs:
- name: Build project
run: |
pnpm build
- name: Test project
run: |
pnpm test
env:
CI: true
5 changes: 4 additions & 1 deletion .github/workflows/pull.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,7 @@ jobs:
run: pnpm i --no-optional
- name: Build project
run: |
npm run build
npm run build
- name: Test project
run: |
pnpm test
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@
"prod:pm2": "cross-env NODE_ENV=production pm2 restart ecosystem.config.js",
"prod:stop": "pm2 stop ecosystem.config.js",
"prod:reload": "pm2 reload ecosystem.config.js",
"release": "vv"
"release": "vv",
"test": "vitest",
"test:watch": "vitest watch",
"test:updateSnap": "vitest -u"
},
"dependencies": {
"@arco-design/web-react": "^2.44.0",
Expand Down Expand Up @@ -81,11 +84,14 @@
"@next/bundle-analyzer": "^13.1.2",
"@suemor/eslint-config-react-ts": "^1.1.0",
"@suemor/prettier": "^1.1.0",
"@testing-library/react": "^14.0.0",
"@types/node": "18.11.18",
"@vitejs/plugin-react": "^3.1.0",
"commitlint": "^17.4.2",
"cross-env": "^7.0.3",
"cz-git": "^1.4.1",
"husky": "^8.0.3",
"jsdom": "^21.1.0",
"lint-staged": "^13.1.0",
"next-compose-plugins": "^2.2.1"
}
Expand Down
Loading

0 comments on commit 7cea64f

Please sign in to comment.