Skip to content

Dispatch success action for RTKQ endpoint in tests #4608

Answered by markerikson
dumaron asked this question in Q&A
Discussion options

You must be logged in to vote

The type is going to be "myApi/execute/fulfilled", but it's made more specific with the endpoint name and request ID.

Generally the right answer here is to create a real store with the actual API slice and use the thunks as it would normally work.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dumaron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants