javascript - Is it possible to test your react app entry point with jest? -
i have react app has following entry point:
// import dependencies import react 'react'; import { render } 'react-dom'; import { browserhistory } 'react-router'; import { synchistorywithstore } 'react-router-redux'; import configurestore './store/configurestore'; import root './containers/root'; const store = configurestore({}); const history = synchistorywithstore(browserhistory, store); render( <root store={store} history={history} />, document.getelementbyid('react') );
a pretty common configuration. i'm wondering how test since doesn't export anything, , jest relies on importing want test.
Comments
Post a Comment