'how to test dispatch called with async create thunk action from a click event of component
Hey guys I am trying figure out a away to write test case to test whether dispatch is called with async create thunk action from a click event of a button of a registration component. I am using reduxtoolkit and new to it. Need guidance. Can I get some simple reference script in React Typescript for understanding purpose to write test cases for components and actions and reducers in Typsescript for reduxtoolkit dispatch createasyncfunction action which use extrareducer slice.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
