📄️ Dispatch, wait and expect
Testing an Async Redux app generally involves these steps, in order:
📄️ Testing the View-Model
To test the StoreConnector's view-model generated by a VmFactory,
📄️ Testing onInit / onDispose
Suppose you want to start polling information when your user enters a particular screen,
📄️ Mocking actions and reducers
To mock an action and its reducer, create a MockStore instead of a regular Store.
📄️ Testing UserExceptions
Suppose you want to test that some UserException is thrown.
📄️ Test files
If you want your tests to be comprehensive you should probably have 3 different types of test for
📄️ Testing navigation
You can test navigation by asserting navigation types, route names etc. This is useful for
📄️ StoreTester (deprecated)
For almost all tests it's now recommended to use the Store directly,