$ git clone https://github.com/infinityworks/iw-tech-test-react-native.git
$ cd /path/to/iw-tech-test-react-native # instructions assume you are in this folder
Follow the instructions here to set up your development environment for either iOS or Android.
We recommend Visual Studio Code. There are workspace settings in .vscode/settings.json
that will automatically format the code and fix any linting issues on save.
For this to work, you must also install the Microsoft ESLint extension.
$ npm install
$ npx pod-install ios # this may take a while
$ npm run start
$ npm run android
$ npm run ios
Our tests are written in TypeScript using the Jest Testing Framework. Test files are adjacent to the code they test (look for index.test.ts*
).
We use Jest Mocks to mock dependencies where necessary.
We use Mock Service Worker to mock API calls where necessary.
There are no API integration tests nor end to end UI tests.
There are a number of test scripts defined in package.json:
$ npm run test # runs all tests once
$ npm run test:watch # runs tests for changed (uncommited) code
$ npm run test:coverage # runs all tests and produces a test coverage report
- Do NOT fork this repository
- Do NOT commit your code to a public GitHub repo