In Test, how does one send custom GET request that is not the specific request the test is for? #6519
Unanswered
davehouser1
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need my test to do the following:
const response = await insomnia.send()
for the request I am testingI get a
failed to find request
I can only assume that I am using
insomnia.send()
incorrectly.Is there a way to send a different request in a test? if so how?
EDIT: Well I hacked a solution together, this is the only way I could get this to work by using a new Promise with http module and parsing the data manually. The following code works and will print out the response payload, and also an attribute from the payload from console. Is there an easier way to do this??
Beta Was this translation helpful? Give feedback.
All reactions