cd backend
sudo docker-compose up
Read the tutorial at https://facebook.github.io/react-native/docs/getting-started using react-native-cli to set up the environment.
Then, with your device connected,
cd frontend
react-native start &
react-native run-android # or run-ios
sudo docker-compose run node npm run test # run all tests
sudo docker-compose run node npm run test <name> # run specific tests
sudo docker-compose run node npm run test:watch # watch tests
sudo docker-compose run node npm run coverage # generate coverage report
sudo docker-compose run node npm run test src # run only unit tests
sudo docker-compose run node npm run test inttests # run only integration tests
sudo docker-compose run node npm run coverage src # generate only unit coverage
sudo docker-compose run node npm run coverage inttests # run only integration coverage
Once generated, the report can be viewed at backend/coverage/lcov-report/index.html