You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This GitHub issue serves as a central hub for the unit-testing journey of our React hook library. Our goal is to ensure robust and reliable testing for each individual hook in the library.
Objectives
Comprehensive Testing: Write unit tests for each hook to ensure thorough coverage of functionality.
Consistent Test Structure: Maintain a consistent structure/format for unit tests across all hooks.
Documentation: Document the purpose and usage of each test to enhance overall project understanding.
Getting Started
Fork the repository to your account.
Create a new branch for your tests: git checkout -b feature/hook-name-tests.
Write tests for the specific hook in packages/usehooks-ts/src/useExample/useExample.test.ts.
Ensure all tests pass before submitting a pull request.
Overview
This GitHub issue serves as a central hub for the unit-testing journey of our React hook library. Our goal is to ensure robust and reliable testing for each individual hook in the library.
Objectives
Getting Started
packages/usehooks-ts/src/useExample/useExample.test.ts
.Hooks to Test
useBoolean
useClickAnyWhere
useCopyToClipboard
useCountdown
useCounter
useDarkMode
useDebounceCallback
useDebounceValue
useDocumentTitle
useEventCallback
useEventListener
useHover
useIntersectionObserver
useInterval
useIsClient
useIsMounted
useLocalStorage
useMap
useMediaQuery
useOnClickOutside
useReadLocalStorage
useResizeObserver
useScreen
useScript
useScrollLock
useSessionStorage
useStep
useTernaryDarkMode
useTimeout
useToggle
useUnmount
useWindowSize
Let's ensure our hooks are well-tested and reliable!
The text was updated successfully, but these errors were encountered: