Do you have any example testing or making spyOn of ky instance? #434
-
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.
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.
-
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.
-
Answered here with simple example - #488 |
Beta Was this translation helpful? Give feedback.
In my apps, I tend to use fetch-mock. It works with Ky since we use
fetch()
under the hood.