The Call Kent Podcast

How are redux thunks implementation details?


Listen Later

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.

  • Example of a custom render method (docs on this)

How are redux thunks implementation details? 

...more
View all episodesView all episodes
Download on the App Store

The Call Kent PodcastBy Kent C. Dodds

  • 5
  • 5
  • 5
  • 5
  • 5

5

2 ratings


More shows like The Call Kent Podcast

View all
The Changelog: Software Development, Open Source by Changelog Media

The Changelog: Software Development, Open Source

288 Listeners

Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

Syntax - Tasty Web Development Treats

990 Listeners

PodRocket by LogRocket

PodRocket

61 Listeners