Skip to content

Instantly share code, notes, and snippets.

@DdMad
DdMad / enzyme-react-redux-material-ui-test.js
Created March 30, 2017 12:30
Create mocha enzyme test with React, React-Redux and Material-UI
import { expect } from 'chai';
import React from 'react';
import { mount } from 'enzyme';
import YourComponent from './YourComponent';
import {TableHeaderColumn} from 'material-ui/Table';
import configureStore from 'redux-mock-store';
import getMuiTheme from 'material-ui/styles/getMuiTheme';
const middlewares = [];
const mockStore = configureStore(middlewares);