Skip to content

Commit

Permalink
feat: add unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
yugasun committed Oct 10, 2023
1 parent c93757a commit 8fcd70c
Show file tree
Hide file tree
Showing 8 changed files with 697 additions and 16 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Vue template for starter using Vue3 + TypeScript + Vite + Pinia + Unocss 🚀
- [x] [Vite](https://vitejs.dev/) Next Generation Frontend Tooling
- [x] [vite-plugin-pwa](https://github.com/antfu/vite-plugin-pwa) Zero-config PWA for Vite
- [x] [Pinia](https://pinia.vuejs.org/) The Vue Store that you will enjoy using
- [x] [Vitest](https://github.com/vitest-dev/vitest) ⚙️ Unit Testing with Vitest
- [x] [Element Plus](https://github.com/element-plus/element-plus) 🎉 A Vue.js 3 UI Library made by Element team
- [x] [Ant Design Vue](https://github.com/vueComponent/ant-design-vue) 🌈 An enterprise-class UI components based on Ant Design and Vue. 🐜
- [x] [vueuse](https://github.com/vueuse/vueuse) Collection of essential Vue Composition Utilities for Vue 2 and 3
Expand Down
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
"commit": "git-cz",
"release": "npx bumpp --push --tag --commit 'release: v'",
"postinstall": "npx msw init public --save",
"prepare": "husky install"
"prepare": "husky install",
"test": "pnpm run test:unit",
"test:unit": "vitest run",
"test:unit:update": "vitest run --update"
},
"dependencies": {
"@element-plus/icons-vue": "^2.1.0",
Expand All @@ -36,11 +39,13 @@
"@commitlint/config-conventional": "^17.7.0",
"@iconify-json/carbon": "^1.1.21",
"@intlify/unplugin-vue-i18n": "^0.11.0",
"@pinia/testing": "^0.1.3",
"@rollup/plugin-replace": "^5.0.3",
"@types/node": "^20.8.4",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vitejs/plugin-vue": "^4.4.0",
"@vue/test-utils": "^2.4.1",
"autoprefixer": "^10.4.16",
"bumpp": "^9.2.0",
"commitizen": "^4.3.0",
Expand All @@ -52,6 +57,7 @@
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-vue": "^9.17.0",
"husky": "^8.0.3",
"jsdom": "^22.1.0",
"lint-staged": "^13.3.0",
"msw": "^1.3.2",
"postcss": "^8.4.31",
Expand All @@ -72,6 +78,7 @@
"vite": "^4.4.11",
"vite-plugin-html": "^3.2.0",
"vite-plugin-pwa": "^0.16.5",
"vitest": "^0.34.6",
"vue-tsc": "^1.8.18"
},
"config": {
Expand Down
Loading

1 comment on commit 8fcd70c

@vercel
Copy link

@vercel vercel bot commented on 8fcd70c Oct 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

vue-ts-starter – ./

vue-ts-starter-yugasun.vercel.app
vue-ts-starter-git-main-yugasun.vercel.app
vue-ts-starter.vercel.app

Please sign in to comment.