You can configure JEST with React Apps in few simple steps. Let’s follow these steps and get JEST ready into our React Apps.
Step 1:
You can setup your React App the way you want to with all your files residing under the src folder as in this project: react-redux-boilerplate.
All the dependencies for this app is present under in package.json.
Step 2:
Setup your .babelrc file so that you can work on JEST with ES6 as follows
{ "presets": ["react", "env", "stage-1"] }