Skip to content

Commit 49597b3

Browse files
chore: add vitest
1 parent 806b68d commit 49597b3

File tree

2 files changed

+367
-2
lines changed

2 files changed

+367
-2
lines changed

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,10 @@
2828
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
2929
"prepublishOnly": "pnpm run build",
3030
"storybook": "storybook dev -p 6006 --no-open",
31-
"typescript": "tsc --p ./tsconfig-build.json --noEmit"
31+
"typescript": "tsc --p ./tsconfig-build.json --noEmit",
32+
"test": "vitest",
33+
"test:ui": "vitest --coverage --ui",
34+
"test:no-watch": "vitest --no-watch"
3235
},
3336
"dependencies": {
3437
"@chakra-ui/anatomy": "^2.3.4",
@@ -73,6 +76,8 @@
7376
"@typescript-eslint/eslint-plugin": "^8.42.0",
7477
"@typescript-eslint/parser": "^8.42.0",
7578
"@vitejs/plugin-react": "^5.0.2",
79+
"@vitest/coverage-v8": "^3.2.4",
80+
"@vitest/ui": "^3.2.4",
7681
"eslint": "^9.34.0",
7782
"eslint-plugin-i18next": "^6.1.3",
7883
"eslint-plugin-import": "^2.32.0",
@@ -89,7 +94,8 @@
8994
"storybook": "^9.1.4",
9095
"typescript": "^5.9.2",
9196
"vite": "^7.1.4",
92-
"vite-plugin-dts": "^4.5.4"
97+
"vite-plugin-dts": "^4.5.4",
98+
"vitest": "^3.2.4"
9399
},
94100
"lint-staged": {
95101
"*.{ts,tsx}": [

0 commit comments

Comments
 (0)