The essential boilerplate for creating react-app-rewired plugins
- Empty CRA project with react-app-rewired v1.x and react-scripts v1.x
- JavaScript unit test runner Jest
- Webpack config parse utils
- Code coverage reporter Codecov
- VS Code debugger configs
- Install the latest Node JS LTS and Yarn and simply run
yarn
oryarn install
command in the root and react-app directory. - Generate webpack test config with
cd react-app/
andyarn build
.
Note: You should generate a new webpack test config whenver you upgrade react-scripts from react-app.
Make any changes to src/index.js and yarn start
to watch tests with coverage.