6 min listen
Dealing with "act" warning on react testing
Dealing with "act" warning on react testing
ratings:
Length:
6 minutes
Released:
Sep 3, 2021
Format:
Podcast episode
Description
So I have a MainComponent, inside there are some “remote” components like OfficeSelect, that fetches data asynchronously on mount, using axios, everytime I test MainComponent I get the “act” warning on that OfficeSelect fetch, how do I deal with that?Fix the “not wrapped in act(…)” warning
Released:
Sep 3, 2021
Format:
Podcast episode
Titles in the series (100)
Dealing with "act" warning on react testing by The Call Kent Podcast