A react native test to show how to register/login an user with proper form validations and list his locations in a swipe to refresh card list.
You're able to generate random locations presseing the card list header button, to show on the list after login/register, and you can tap on the location to see it's details. All these project actions points to this API.
The project contains tests using Jest, focused on the components and the redux actions. The components test will generate snapshots
that can be updated when component changes are made.
The main project libraries are React Navigation
, Redux
, Redux Saga
and Jest
.
Clone this repository and run the command:
npm install
and then run the commands for each platform:
react-native run-android
react-native run-ios
Run the command:
npm test
You're also able to run a specific test by running this command for example:
npm test 'ActionLogin-test'
To update a component snapshot, run this command for example:
npm test -- -u 'LocationListItem-test'