Skip to content

savcni01/redux-jest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Write your Redux test with Jest

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%