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.
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.
Use Typescript to find and prevent type related issues.
make check-style
checks the codebase against our linting rules. We're using
the AirBnB ES6 and React style guides.
- 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