I am trying to use mount from Enzyme to test my component in which a several Material UI component are nested. I get this error when running the test:
mount
<
Try adding childContextTypes in the mount options:
childContextTypes
return mount( , { context: {muiTheme}, childContextTypes: {muiTheme: React.PropTypes.object} } );
By doing it you set the Enzyme wrapper to make the muiTheme available to it's children through the context.
muiTheme