Skip to content

ash-sykes-acn/iw-tech-test-react-native

 
 

Repository files navigation

Infinity Works - React Native Tech Test

Getting started

Clone this repo

$ 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

Set up your development environment

Follow the instructions here to set up your development environment for either iOS or Android.

Visual Studio Code

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.

Install packages

$ npm install

iOS only: Install CocoaPods

$ npx pod-install ios # this may take a while

Run Metro

$ npm run start

Run the app on an Android Emulator

$ npm run android

Run the app on an iOS Simulator

$ npm run ios

Testing

Overview

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.

Running 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

Submission

  • Do NOT fork this repository
  • Do NOT commit your code to a public GitHub repo

Screenshots

Authority List Screen Authority Detail Screen

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 52.6%
  • Java 22.1%
  • Objective-C 16.0%
  • JavaScript 3.8%
  • Ruby 3.4%
  • Starlark 2.1%