Skip to content

v1.0.0

Latest
Compare
Choose a tag to compare
@doniyor2109 doniyor2109 released this 30 Dec 11:24
· 28 commits to master since this release

Breaking changes

  • Renamed toMatchActionCreators -> toMatchActionSnapshot
  • toHandleActions and toMatchActionSnapshot expects action creators that does not have arguments:
const actions = {
	increment: () => ({ type: "INC" })
};

If you have actions that receives arguments you can wrap them into function

const add = (number) => ({ type: "ADD", payload: number });

const actions = {
 add: () => add(1)
};

Features

  • Now toMatchActionSnapshot shows expected and actual results when tests fails