How are redux thunks implementation details? - podcast episode cover

How are redux thunks implementation details?

Feb 15, 20236 minSeason 3Ep. 27
--:--
--:--
Download Metacast podcast app
Listen to this episode in Metacast mobile app
Don't just listen to podcasts. Learn from them with transcripts, summaries, and chapters for every episode. Skim, search, and bookmark insights. Learn more

Episode description

The official Redux recommendation is to avoid testing thunks in isolation and instead opt for integration testing with redux connected components. The main reason given is that thunks are considered implementation details.

Why are thunks considered implementation details?

 In the context of async thunks in RTK can you give examples of how testing an async thunk might lead to false negatives and false positives in our tests? 

What are your opinions on testing thunks in isolation that conditionally dispatch other actions, something that my team at work often does.

How are redux thunks implementation details? 

For the best experience, listen in Metacast app for iOS or Android