import React from 'react';
var Component = React.Component;

export function foo () {

}

export function baz () {

}

export class MyComponent extends React.Component {

}

export class MySecondComponent extends Component {
    render () {
        return <div className="whatever"></div>;
    }
}
@@ -218,16 +218,133 @@
 onent %7B%0A
+    constructor(props) %7B%0A        super(props);%0A        this.state = %7Bfoo: 1%7D;%0A    %7D%0A    componentDidMount() %7B%0A%0A    %7D%0A
     rend

add methods to class in mock