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

284 Listeners

Software Engineering Daily by Software Engineering Daily

Software Engineering Daily

621 Listeners

Soft Skills Engineering by Jamison Dance and Dave Smith

Soft Skills Engineering

269 Listeners

The Daily by The New York Times

The Daily

111,785 Listeners

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

Syntax - Tasty Web Development Treats

987 Listeners

PodRocket - A web development podcast from LogRocket by LogRocket

PodRocket - A web development podcast from LogRocket

57 Listeners

devtools.fm: Developer Tools, Open Source, Software Development by Andrew Lisowski, Justin Bennett

devtools.fm: Developer Tools, Open Source, Software Development

26 Listeners

Mostly Technical by Ian Landsman and Aaron Francis

Mostly Technical

16 Listeners