react-vaccine
Version:
Config-free React and Redux testkit
19 lines (15 loc) • 422 B
JavaScript
import { MockState } from './index.js';
let mockState = new MockState();
export const setupTests = ({ getState, dispatch }, next, action) => {
console.log('Setting up state');
mockState.setState(getState());
mockState.setDispatch(dispatch);
};
export const acceptAction = ({getState}, action) => {
const state = getState();
};
export const Components = {
App: (props, Component) => {
return props;
}
};