mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-04-19 04:00:56 -04:00
docs: update command for running a single cypress test (#48932)
* Corrected documentation for running single Cypress test * docs: update command for running a single cypress test * Update docs/how-to-add-cypress-tests.md Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com> * docs: update command for running a single cypress test Co-authored-by: Naomi Carrigan <nhcarrigan@gmail.com>
This commit is contained in:
@@ -34,7 +34,13 @@ To run tests against production builds, replace `dev` with `prd` below.
|
||||
- To run a single test:
|
||||
|
||||
```console
|
||||
npm run cypress:dev:run -- --spec=cypress/pathToYourSpec/youSpecFileName.js
|
||||
npm run cypress -- run --spec=cypress/<path_to_test_file>
|
||||
```
|
||||
|
||||
For example:
|
||||
|
||||
```console
|
||||
npm run cypress -- run --spec=cypress/e2e/default/landing.js
|
||||
```
|
||||
|
||||
- To create a development build, start the development server, and run all existing cypress end-to-end tests:
|
||||
|
||||
Reference in New Issue
Block a user