ohtangza / redux-mock-store

A mock store for your testing your redux async action creators and middleware

Home Page:http://arnaudbenard.com/redux-mock-store/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

redux-mock-store Circle CI

npm

A mock store for testing your redux async action creators and middleware. The mock store will create an array of dispatched actions which serve as an action log for tests.

Please note that this library is designed to test the action-related logic, not the reducer-related one. In other words, it does not update Redux store. If you want a complex test combining action and reducer together, take a look at other libraries (e.g., redux-actions-assertions). Refer issue #71 for more detail.

Install

npm install redux-mock-store --save-dev

Documentation

You can see the latest documentation here.

Old version (< 1.x.x)

https://github.com/arnaudbenard/redux-mock-store/blob/v0.0.6/README.md

License

The MIT License

About

A mock store for your testing your redux async action creators and middleware

http://arnaudbenard.com/redux-mock-store/

License:MIT License


Languages

Language:JavaScript 100.0%