Skip to content

Releases: smaato/react-test-kit

React 16 update

15 Jan 15:37
a646d3b

Choose a tag to compare

Merge pull request #17 from smaato/react-16-update

React 16 update

v0.2.0

01 Feb 11:31

Choose a tag to compare

Breaking changes

  • Upgraded react to ^15.0.0 instead of fixed 15.0.1.

v0.1.0

15 Apr 16:42

Choose a tag to compare

Breaking changes

  • Upgraded react to 15.0.1 and redux-form to 5.0.1.

v0.0.6

11 Mar 16:38

Choose a tag to compare

Improvements

You can now specify the initial store state by passing an object to mockFormStore.

v0.0.5

08 Feb 17:47

Choose a tag to compare

Features

  • TestCaseFactory has create() convenience method, which accepts both React Component Class and stateless functional component references.

Improvements

  • ContainerTestCase now asserts that there are no unexpected state props on the tested Container.

v0.0.4

08 Jan 17:23

Choose a tag to compare

Breaking changes

  • Upgraded react-redux to 4.0.6.

Features

  • The TestCase trigger method now accepts an eventData object as its third parameter.
  • mockFormStore method lets you test components built with redux-form.

Improvements

  • TestCase firstComponent and findComponents methods throw informative errors when called with a non-class.

v0.0.3

10 Dec 19:40

Choose a tag to compare

Bug fixes

  • Fixes bug with using props.children. Now you can specify children via the props arguments when creating TestCase instances.

Improvements

  • Misuse of factory methods now throws informative errors. No more confusion when things just aren't working -- now the terminal will tell you why!

v0.0.2

19 Nov 15:05

Choose a tag to compare

Breaking changes

TestCaseFactory

The click method has been removed. The trigger method should be used instead:

// Old way
testCase.click();

// New way
testCase.trigger('click');

All supported React events can be triggered this way.

v0.0.1

22 Oct 16:41

Choose a tag to compare

import {
  ContainerTestCase,
  MockedRouteActions,
  MockedStore,
  TestCase,
  TestCaseFactory,
} from 'react-test-kit';