From 44b0c319625e66953fd3134fec045f831a0ae71a Mon Sep 17 00:00:00 2001 From: Yujie Wang Date: Thu, 23 Jun 2022 20:24:50 +0800 Subject: [PATCH 1/3] docs: update README for @cypress/react (add commands to run tests) --- npm/react/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/npm/react/README.md b/npm/react/README.md index e587aed5985c..3cb6eb529afb 100644 --- a/npm/react/README.md +++ b/npm/react/README.md @@ -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 From 732087f4d462e456b1c65125fddfe675319b859d Mon Sep 17 00:00:00 2001 From: Yujie Wang Date: Thu, 23 Jun 2022 21:38:05 +0800 Subject: [PATCH 2/3] docs: update commands & add links to docs --- npm/react/README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/npm/react/README.md b/npm/react/README.md index 3cb6eb529afb..50823bd0d13b 100644 --- a/npm/react/README.md +++ b/npm/react/README.md @@ -98,14 +98,16 @@ See [Recipes](./docs/recipes.md) for more examples. Open cypress test runner ``` -npx cypress open-ct +npx cypress open --component ``` If you need to run test in CI ``` -npx cypress run-ct +npx cypress run --component ``` +For more information, please check the official docs for [running Cypress](https://on.cypress.io/guides/getting-started/opening-the-app#Quick-Configuration) and for [component testing](https://on.cypress.io/guides/component-testing/writing-your-first-component-test). + ## 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 From 2ec6d0bf1c27f0485bbbf881eed36f01f9397d90 Mon Sep 17 00:00:00 2001 From: Lachlan Miller Date: Fri, 24 Jun 2022 11:24:19 +1000 Subject: [PATCH 3/3] chore: trigger CI