redux-jest

1.1.1 • Public • Published

redux-jest

Write Redux test with Jest

Installation

npm install redux-jest --save

API

actionTest(description, actionCreator, data, type)

reducerTest(description, reducer, stateBefore, action, stateAfter)

asyncReducerTest(description, reducer, stateBefore, asyncAction, stateAfter)

Example tests

This is an Jest port of redux-ava. For more documentation, check there.

npm install
npm test

Dependencies

  • deep-freeze: recursively Object.freeze() objects and functions

Dev Dependencies

  • jest-cli: Painless JavaScript Unit Testing.
  • miclint: mic lint cli
  • snazzy: Format JavaScript Standard Style as Stylish (i.e. snazzy) output

License

MIT

Generated by package-json-to-readme

Readme

Keywords

Package Sidebar

Install

npm i redux-jest

Weekly Downloads

98

Version

1.1.1

License

MIT

Last publish

Collaborators

  • roilan