Skip to content

Commit

Permalink
update README for @cypress/react (add commands to run tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeijiYang committed Jun 23, 2022
1 parent b907127 commit fb903f7
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions npm/react/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,18 @@ See [Recipes](./docs/recipes.md) for more examples.
}
```

## Run

Open cypress test runner
```
npx cypress open-ct
```

If you need to run test in CI
```
npx cypress run-ct
```

## API

- `mount` is the most important function, allows to mount a given React component as a mini web application and interact with it using Cypress commands
Expand Down

0 comments on commit fb903f7

Please sign in to comment.