Skip to content

Latest commit

 

History

History
39 lines (26 loc) · 1.12 KB

testing.md

File metadata and controls

39 lines (26 loc) · 1.12 KB

Testing

Unit tests

make test runs the unit test suite.

Our tests are written using Jest.

To write a test, place a Javascript file with the .test.ts suffix in the __tests__ directory inside of any subfolder of /src. The test will be automatically picked up by the test runner.

End to End tests

make test-e2e runs Gray box end-to-end tests

Our tests are written using Detox.

To write a test, place a Javascript file with the .spec.js suffix in the e2e directory inside root directory. The test will be automatically picked up by the test runner.

Linting

make check-style checks the codebase against our linting rules. We're using the AirBnB ES6 and React style guides.

Storybook

  • Open index.js

  • Uncomment following line

import './.storybook';
  • Comment out all other lines
  • Start your application again

Type checking with TypeScript

Use Typescript to find and prevent type related issues.