kentcdodds / ama

Ask me anything!
https://github.com/kentcdodds/ama/issues?q=is%3Aissue+is%3Aclosed
685 stars 75 forks source link

React/Redux testing with react-testing-library #852

Open AlexBelz123 opened 3 years ago

AlexBelz123 commented 3 years ago

Hi Kent! I saw you on YouTube and that was amazing experience! I am a nooby at testing, just watched your videos about react-testing-library and I got an issue. I will be grateful for your answer or if this question has been already posted, pls give me a link. I have react/redux component with async api call from action creator and I don't know how to test it. I tried this, but got a problem There is a link for code - https://codesandbox.io/s/solitary-architecture-hv3p6?fontsize=14&hidenavigation=1&theme=dark Thank you for your attention