Skip to content

Commit

Permalink
Add unit test for hooks
Browse files Browse the repository at this point in the history
- Implemented tests for the `useResize` hook to verify behavior across different screen sizes.
- Added tests for the `useTheme` hook to check the default theme and verify that it updates to light or dark when changed.
  • Loading branch information
Fingertips18 committed Sep 26, 2024
1 parent a85b7cf commit 9250bc9
Show file tree
Hide file tree
Showing 4 changed files with 424 additions and 0 deletions.
285 changes: 285 additions & 0 deletions client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
},
"devDependencies": {
"@eslint/js": "^9.9.0",
"@testing-library/react": "^16.0.1",
"@types/node": "^22.5.4",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
Expand Down
Loading

0 comments on commit 9250bc9

Please sign in to comment.