Releases: smaato/react-test-kit
Releases · smaato/react-test-kit
Release list
React 16 update
Merge pull request #17 from smaato/react-16-update React 16 update
v0.2.0
v0.1.0
v0.0.6
v0.0.5
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
Breaking changes
- Upgraded react-redux to 4.0.6.
Features
- The TestCase
triggermethod now accepts aneventDataobject as its third parameter. mockFormStoremethod lets you test components built with redux-form.
Improvements
- TestCase
firstComponentandfindComponentsmethods throw informative errors when called with a non-class.
v0.0.3
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
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.