Mocked Request throwing error when converted to json #1943
Unanswered
LachlanNewman
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Im currently tring to test a got request using jest using nock to intercept requests.
this is the got request
However when the request is called its return the error
'got_1.default.get(...).json is not a function'
This error doesnt occur is the request is not mocked
not sure if this is a error or i am doing someting wrong
Beta Was this translation helpful? Give feedback.
All reactions