# Running unit and UI tests for React Native apps

:::tip[E2E testing]

For end-to-end testing, check out Detox or Maestro: [Running Detox tests on Bitrise](/bitrise-ci/testing/testing-react-native-apps/running-detox-tests-on-bitrise), [Running Maestro tests on Bitrise](/bitrise-ci/testing/running-maestro-tests-on-bitrise).

:::

  

**Workflow Editor**

  1. Write your tests and add them to your React Native project.
  1. On Bitrise, add either the [**Run npm command**](https://github.com/bitrise-steplib/steps-npm) or the [**Run yarn command**](https://github.com/bitrise-community/steps-yarn) Step to your Workflow, depending on which package manager you use in your project.
  1. Configure the Step to run the `test` command:

     - For Yarn, find the **Arguments for running yarn commands** input and add `test`.

     - For npm, find the **The npm command with arguments to run** input and add `test`.

     ![npm-test.png](/img/_paligo/uuid-195577ac-fbba-5fe4-810b-3749e614682c.png)

     In either case, the Step will run the `test` script in the `scripts` object of your package.

  
  

**Configuration YAML**

  1. Write your tests and add them to your React Native project.
  1. In the Configuration YAML file, add either the `npm` or the `yarn` Step to your Workflow, depending on which package manager you use in your project.
  1. Configure the Step of your choice to run the `test` command: for either Step, set the `command` input to `test`.

     ```yaml
     empty:
       steps:
         - git-clone: {}
         - npm:
             inputs:
             - command: test
         - yarn@0:
             inputs:
             - command: test
         - deploy-to-bitrise-io: {}
     ```

     Either Step will run the `test` script in the `scripts` object of your package.

  

Run the tests and view their results: [Viewing test results](/bitrise-ci/testing/test-reports/viewing-test-results).
