component providing a gui for redux-test-recorder in react applications
npm install redux-test-recorder-reactnpm install redux-test-recorder-react --save-dev
A react component that provides a gui to the redux-test-recorder redux middleware which can be used to auto generate reducer tests for redux applications through testing UI interactions. You can use use the props exported by the middleware and pass those to the TestRecorder component at your application root.
``js
import {store, recordProps } from './store';
import TestRecorder from 'redux-test-recorder-react';
const Counter = ({count, dispatch}) => {
return (
{count}
);
}
const ConnectedCounter = connect(state => {
return {count: state};
})(Counter);
const Root = () => {
return (
You can see more comprehensive documention in the redux-test-recorder repo.