-
-
Notifications
You must be signed in to change notification settings - Fork 449
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
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
- 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.
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!
ashfurrow and am-maneaters
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed