TypeError: ShallowWrapper::state("profile") requires that `state` not be `null` or `undefined` code example
Example: TypeError: ShallowWrapper::state requires that `state` not be `null` or `undefined`
class MyComponent extends React.Component {
constructor(props) {
super(props);
this.state = {/* initial state */}
}
}