Unit tests

For checking the correctness of the component run yarn test-ci to perform the same automatic checks as the CI server. You can also run these checks separately by typing:

yarn flow for the static type check

yarn eslint for ESLint check

some warnings can be fixed automatically by running yarn eslint --fix

yarn test to run all Jest tests

If you need to update tests because of some changes in the code, you can do it by running yarn test -u. We strongly recommend testing your component in different types of browsers across different platforms.

Visual regression test

We are still working on this, we will add documentation as soon as possible.

Adding a new icon

It's easy to update or add a new icon because SVGs are automatically converted to React components. See this documentation for more information.

Props naming convention

We want to ensure that all props are consistent across all components. This convention can help choose the right prop names in for your new components.

Component design

Check this section for a complete description of the structure of the files which are necessary for a Component check.