Replies: 1 comment
-
Hi, @cdevolder. Use What you have right now will provide a http.get(`${BASE_PATH}/me/buyers/offers/:offerId`, () => {
return HttpResponse.json(offerPayload)
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I updated msw version form 0.49.2 to 2.0.10 so changing my handlers from
rest.get(`${BASE_PATH}/offers/:offerId`, (req, res, ctx) => { return res(ctx.json(offerPayload)); }),
to
http.get(`${BASE_PATH}/me/buyers/offers/:offerId`, () => { return new HttpResponse(offerPayload, { status: 200 }) }),
In my component I have
But response is equal to this payload with data = empty string when testing
Would really appreciate any suggestion.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions