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.
make check-style
checks the codebase against our linting rules. We're using
the AirBnB ES6 and React style guides.
-
Open index.js
-
Uncomment following line
import './.storybook';
- Comment out all other lines
- Start your application again
Use Typescript to find and prevent type related issues.