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

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -