Skip to content

Releases: doniyor2109/jest-redux

v1.0.0

30 Dec 11:24
Compare
Choose a tag to compare

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