RTKQ & RTKM mocking and jest test case for covering? #3287
Replies: 3 comments 4 replies
-
We specifically recommend writing tests that do mocking at the network request level: |
Beta Was this translation helpful? Give feedback.
-
@yaswanth1121997 i don't know how much it help you but you can try do next
|
Beta Was this translation helpful? Give feedback.
-
I'm also facing the same issue and I'm using msw which is giving me undefined response in my vitest environment. Do we need to set headers too while calling the handler for mock api
|
Beta Was this translation helpful? Give feedback.
-
Can someone help me How to write the jest test case for covering this entire file especially extraReducers matchCases like fulfilled & RTKQ ?
Beta Was this translation helpful? Give feedback.
All reactions