From "The Road to learn React" book.
yarn install to install de project and dev dependencies.
Starting the app
yarn start to start the application.
After starting the app it should be automatically opened in the default browser.
yarn test to run the automated unit tests.
yarn run test:e2e:cypress to run the Cypress end-to-end tests.
yarn run test:e2e:protractor to run the Protractor end-to-end tests.
Note: local server needs to be up and running.
Running end-to-end tests on CI
yarn run ci:cypress to run the Cypress end-to-end tests on CI mode.
yarn run ci:protractor to run the Protractor end-to-end tests on CI mode.
Here CI mode means that a local server will be automatically started before the tests run, and the server will be automatically shut down when the tests are finished.
The build status based on execution of unit and end-to-end tests can be found below.