-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: useAllPokemon
hook
#25
Comments
henrylin03
added a commit
that referenced
this issue
Dec 16, 2024
…our. docs: update README. chore: move CSS modules into folders with components. having tests and CSS modules in the same folder as the components increases ease of maintainability. this ticket fixes #15, although the subtasks will be completed separately: #25 will test the hook, which has some issues that need to be resolved. #26 will implement e2e testing. #10 is tested here, along with ensuring the helper function to randomly select Pokemon IDs do not return any ids that are duplicates (that would be bad for gameplay). README was updated to increase size of the logo, update the screenshot to have hover effect apparent, and added more explanation around using Vitest and RTL. Removed acknowledgement for an old loading image (Pokeball) as we are now just using the Masterball that Muhammad Jazman created.
henrylin03
added a commit
that referenced
this issue
Dec 16, 2024
…our. docs: update README. chore: move CSS modules into folders with components. having tests and CSS modules in the same folder as the components increases ease of maintainability. this ticket fixes #15, although the subtasks will be completed separately: #25 will test the hook, which has some issues that need to be resolved. #26 will implement e2e testing. #10 is tested here, along with ensuring the helper function to randomly select Pokemon IDs do not return any ids that are duplicates (that would be bad for gameplay). README was updated to increase size of the logo, update the screenshot to have hover effect apparent, and added more explanation around using Vitest and RTL. Removed acknowledgement for an old loading image (Pokeball) as we are now just using the Masterball that Muhammad Jazman created.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
custom hook was introduced in #17 to fetch pokemon data from PokeAPI (using
useEffect()
) and returning all Pokemon data, whether it is loading, and any errors.test should be written to mock the API call and ensure core functionalities of the hook, namely:
The text was updated successfully, but these errors were encountered: