-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtestingFor testingFor testing
Description
Add Unit Tests for useFocusVisible
Hook
Description:
Write unit tests for the useFocusVisible
hook using React Testing Library.
Verify that:
- The hook returns
true
when navigating with a keyboard. - The hook returns
false
when using a mouse.
Steps:
- Setup your test environment if you haven’t already.
- Create tests in a new file
src/hooks/useFocusVisible.test.js
. - Mock events (keyboard vs. mouse) to test the hook behavior.
- Ensure the tests pass using
npm run test
.
Feel free to ask questions in this issue or drop by our discussion channel!
Metadata
Metadata
Assignees
Labels
good first issueGood for newcomersGood for newcomershelp wantedExtra attention is neededExtra attention is neededtestingFor testingFor testing