redux-testing-library
Simple and maintainable tests for your react/redux application inspired by react-testing-library.
Features
- simple data-driven integration tests
- dispatch actions, wait for store changes and assert the result
- do not test implementation details: just rely on your actions and selectors
- it also covers all middleware functionalities, e.g. async code via redux-saga
- includes the full power of react-testing-library (no other dependencies)
How to use?
;; ; describe"when addTodo action is dispatched",;