Skip to content

Commit

Permalink
Add a heading for automated tests [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
kristerkari committed Jul 11, 2021
1 parent 2504182 commit 04533e3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ If you need more advanced things like animations, lazy loading of images, or par
- [Properties of `<ScrollView />`](#properties-of-scrollview)
- [Dependencies](#dependencies)
- [Development](#development)
- [Automated tests](#automated-tests)
- [Special thanks](#special-thanks)
- [License](#license)

Expand Down Expand Up @@ -226,6 +227,8 @@ First make sure that you have [Node.js](https://nodejs.org/), [Yarn](https://yar

If you choose to install emulators or simulators, you can use [the example app](/examples) to test your changes in a React Native app.

#### Automated tests

When making changes to the code, please add a unit test or a functional test to verify that the code is working. The test runner that the project uses is [Jest](https://jestjs.io/), [Enzyme](https://airbnb.io/enzyme/) is used to test React Components, and [Detox](https://github.com/wix/Detox) is used to run functional tests against the project's example app. The command to run unit tests is `yarn test` and the command to run functional tests is `yarn functional`.

Before you submit the code for a Pull Request, make sure that you run `yarn test`, `yarn tsc`, and `yarn lint` to verify that unit tests pass and both the Typescript type checking and ESLint linting are not printing any errors.
Expand Down

0 comments on commit 04533e3

Please sign in to comment.