Do you have any example testing or making spyOn of ky instance? #434
Answered
by
sholladay
andrestejada
asked this question in
Q&A
-
do you have any example trying to made a mock of ky or ky instance , especially when you need to mock the response with mock data, Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
sholladay
Apr 7, 2022
Replies: 3 comments 1 reply
-
In my apps, I tend to use fetch-mock. It works with Ky since we use |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sindresorhus
-
May be do you have any example , to know how is the correct way to mocking the response? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Answered here with simple example - #488 |
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
In my apps, I tend to use fetch-mock. It works with Ky since we use
fetch()
under the hood.