Skip to content

Commit 8533b54

Browse files
committed
Added husky
1 parent 659e0eb commit 8533b54

File tree

3 files changed

+1109
-1100
lines changed

3 files changed

+1109
-1100
lines changed

web-ui/.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
yarn test

web-ui/package.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,9 @@
5757
"serve": "vite preview",
5858
"start": "vite",
5959
"test": "vitest",
60-
"update-test": "vitest -u"
60+
"update-test": "vitest -u",
61+
"postinstall": "husky init",
62+
"prepare": "husky"
6163
},
6264
"eslintConfig": {
6365
"extends": "react-app"
@@ -76,10 +78,10 @@
7678
},
7779
"devDependencies": {
7880
"@ladle/react": "^5.0.1",
81+
"@testing-library/dom": "^10.4.0",
7982
"@testing-library/jest-dom": "^6.6.3",
8083
"@testing-library/react": "^16.2.0",
8184
"@testing-library/user-event": "^14.6.1",
82-
"@testing-library/dom": "^10.4.0",
8385
"@types/react-router-dom": "^5.3.3",
8486
"@vitejs/plugin-react-swc": "^3.8.0",
8587
"@vitest/coverage-v8": "^3.0.8",
@@ -88,6 +90,7 @@
8890
"eslint-plugin-react-hooks": "^5.2.0",
8991
"eslint-plugin-vitest": "^0.5.4",
9092
"globals": "^16.0.0",
93+
"husky": "^9.1.7",
9194
"jsdom": "^26.0.0",
9295
"msw": "^2.7.3",
9396
"prettier": "3.5.3",

0 commit comments

Comments
 (0)