Closed raynmakers closed 1 year ago
Thanks for your question.
Everything seems right. What's not working though?
It is calling the original Axios instance instead of the MockedAdapter.
Ah, mate, you need to ask the question in the axios
and axios-mock-adapter
projects respectively. I do not see you are using Stamps for mocking.
With stamps, one do not need any mocking libraries. Stampit can mock anything. Here is an article on that topic: https://medium.com/@koresar/fun-with-stamps-episode-17-easy-100-unit-test-coverage-in-js-d97e09591f18
Hi there,
I'm trying to write a unit test that tests my stamp, this is the setup of my files:
useFetch.ts
And my test file:
What should I do to make this test work?