Skip to content

Commit b491132

Browse files
authored
Add Yarn Plug'n'Play note to Module API guide (#5254)
1 parent 36f753b commit b491132

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

docs/guides/guides/module-api.mdx

+11
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,17 @@ results directly after the run. With this workflow, for example, you can:
1010
- Rerun a single failing spec file
1111
- Kick off other builds or scripts
1212

13+
:::info
14+
15+
<strong>Yarn Plug'n'Play</strong>
16+
17+
To run Cypress via Node.js in a
18+
[Yarn Plug'n'Play](https://yarnpkg.com/features/pnp) environment, use
19+
[yarn node](https://yarnpkg.com/cli/node) instead of
20+
[node](https://nodejs.dev/en/learn/run-nodejs-scripts-from-the-command-line/).
21+
22+
:::
23+
1324
## `cypress.run()`
1425

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

0 commit comments

Comments
 (0)