Skip to content

Commit ece2ccb

Browse files
committed
vitest init
1 parent cc90638 commit ece2ccb

File tree

13 files changed

+11953
-7940
lines changed

13 files changed

+11953
-7940
lines changed

.github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ jobs:
3333
- name: Set up PNPM
3434
uses: pnpm/action-setup@v3
3535
with:
36-
version: 9.7.1
36+
version: 9.7.1
3737
- name: Set up Node
3838
uses: actions/setup-node@v4
3939
with:
40-
node-version: 20.16.0
41-
cache: pnpm
40+
node-version: 20.16.0
41+
cache: pnpm
4242
- name: Install dependencies
4343
run: pnpm i --frozen-lockfile
4444
- name: Build for production

.prettierrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
"^@/@enums",
99
"^@/@interfaces",
1010
"^@/@types",
11-
"^@/composable",
1211
"^@/stores",
12+
"^@/composable",
13+
"^@/utils",
1314
"^@/router/(.*)$",
1415
"^@/styles/(.*)$",
1516
"^@/views/(.vue*)$",

package.json

+8
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"start": "vite --host 127.0.0.1",
1313
"build": "vue-tsc --noEmit && vite build",
1414
"preview": "vite preview",
15+
"test": "vitest",
1516
"lint:all": "pnpm lint:script --fix && pnpm format",
1617
"lint:script": "eslint .",
1718
"format": "prettier --write .",
@@ -33,6 +34,7 @@
3334
"@chromatic-com/storybook": "^1.7.0",
3435
"@eslint/compat": "^1.1.1",
3536
"@eslint/js": "^9.9.0",
37+
"@pinia/testing": "^0.1.5",
3638
"@storybook/addon-essentials": "^8.2.9",
3739
"@storybook/addon-interactions": "^8.2.9",
3840
"@storybook/addon-links": "^8.2.9",
@@ -47,22 +49,28 @@
4749
"@typescript-eslint/eslint-plugin": "^8.2.0",
4850
"@typescript-eslint/parser": "^8.2.0",
4951
"@vitejs/plugin-vue": "^5.1.2",
52+
"@vitest/coverage-v8": "^2.0.5",
53+
"@vitest/ui": "^2.0.5",
5054
"@vue/eslint-config-prettier": "^9.0.0",
5155
"@vue/eslint-config-typescript": "^13.0.0",
56+
"@vue/test-utils": "^2.4.6",
5257
"eslint": "^9.9.0",
5358
"eslint-config-prettier": "^9.1.0",
5459
"eslint-plugin-prettier": "^5.2.1",
5560
"eslint-plugin-storybook": "^0.8.0",
5661
"eslint-plugin-vue": "^9.27.0",
5762
"globals": "^15.9.0",
63+
"jsdom": "^24.1.1",
5864
"lint-staged": "^15.2.9",
5965
"prettier": "^3.3.3",
66+
"rollup": "^4.21.0",
6067
"sass": "^1.77.8",
6168
"storybook": "^8.2.9",
6269
"typed-scss-modules": "^8.0.1",
6370
"typescript": "5.5.4",
6471
"typescript-eslint": "^8.2.0",
6572
"vite": "^5.4.2",
73+
"vitest": "^2.0.5",
6674
"vue-tsc": "^2.0.29"
6775
},
6876
"lint-staged": {

0 commit comments

Comments
 (0)