Skip to content
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

Testing: How to test component which uses useAxios when using TypeScript in Jest? #32

Closed
8enSmith opened this issue Sep 13, 2019 · 1 comment

Comments

@8enSmith
Copy link
Contributor

8enSmith commented Sep 13, 2019

Ok, this is not an issue with the library, it's a question on how it can be mocked when using it in a React component. I'm using TypeScript which appears to be further complicating the matter (for me anyhow!)

I've created a question on StackOverflow too as can be seen here.

I'd have thought this would be trivial but am finding it tricky!

@simoneb
Copy link
Owner

simoneb commented Sep 14, 2019

This question is not relevant to the project. There's nothing specific to axios-hooks that you need to do to test a component which uses it.

@simoneb simoneb closed this as completed Sep 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants