Skip to content

Commit

Permalink
Add Yarn Plug'n'Play note to Module API guide (#5254)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeMcC399 authored May 19, 2023
1 parent 36f753b commit b491132
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions docs/guides/guides/module-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@ results directly after the run. With this workflow, for example, you can:
- Rerun a single failing spec file
- Kick off other builds or scripts

:::info

<strong>Yarn Plug'n'Play</strong>

To run Cypress via Node.js in a
[Yarn Plug'n'Play](https://yarnpkg.com/features/pnp) environment, use
[yarn node](https://yarnpkg.com/cli/node) instead of
[node](https://nodejs.dev/en/learn/run-nodejs-scripts-from-the-command-line/).

:::

## `cypress.run()`

Runs Cypress tests via Node.js and resolve with all test results. See the
Expand Down

0 comments on commit b491132

Please sign in to comment.