Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.18 KB

testing.md

File metadata and controls

42 lines (28 loc) · 1.18 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.

Type checking with TypeScript

Use Typescript to find and prevent type related issues.

Linting

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

Cosoms

  • Run cosmos server
npm run cosmos
  • Uncomment following line in <rootDir>/index.js
import './.cosmos/cosmos.app';
  • Comment out all other lines and Start your application again