Illustration of a microphone

Calls with Kent C. Dodds.

You call, I'll answer.

Listen to the podcasts here
Phone sitting on a stool

What's this all about?

The goal of the Call Kent Podcast is to get my answers to your questions. You record your brief question (120 seconds or less) right from your browser. Then I listen to it later and give my response, and through the magic of technology (ffmpeg), our question and answer are stitched together and published to the podcast feed.

I look forward to hearing from you!

Record your call

Calls with Kent C. Dodds Season 3 — 50 episodes

27.How are redux thunks implementation details?
06:28
Keywords

redux-thunk, RTK, implementation-details

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.
27.How are redux thunks implementation details?
06:28
Keywords

redux-thunk, RTK, implementation-details

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.
27.How are redux thunks implementation details?
06:28
Keywords

redux-thunk, RTK, implementation-details

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.
27.How are redux thunks implementation details?
06:28
Keywords

redux-thunk, RTK, implementation-details

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.

Looking for more content?

Have a look at these articles.

See the full blog