Importing React project structure Follow
I already have a React project structure like this. How do I import this into WebStorm 2016 ? Is it not like importing an existing Java/JEE project into the IDE ?
How is it different for React projects and WebStorm ? I want to run the tests and run the code from within WebStorm.
Update : I opened this project. I updated to ES6 when prompted.
How do I run tests using jest ? How can I run this reactjs app ?
Please sign in to leave a comment.
>How can I run this reactjs app ?
It depends on your application... How do you normally run it (when not using WebStorm)? Via 'npm start' or smth similar? You can use NPM tool window for running your application then - see https://www.jetbrains.com/help/webstorm/2016.2/running-npm-scripts.html
>How do I run tests using jest ?
Jest is not yet supported (https://youtrack.jetbrains.com/issue/WEB-14979). However you can use Node.js run configuration to run Jest tests in WebStorm - see https://youtrack.jetbrains.com/issue/WEB-14979#comment=27-1518879