Skip to content

How to test slice reducer listening to RTK Query actions #2214

Answered by phryneas
einarq asked this question in Q&A
Discussion options

You must be logged in to vote

Either mock the api and actually fire the query, or export the action in the devtools and copy-paste it into your test & dispatch it. It's just a plain object after all.

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by einarq
Comment options

You must be logged in to vote
1 reply
@phryneas
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
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