From 79310d53109d35d39f6c9d306edb014087e4639f Mon Sep 17 00:00:00 2001 From: Mike McCready <66998419+MikeMcC399@users.noreply.github.com> Date: Thu, 27 Jul 2023 17:16:51 +0200 Subject: [PATCH] test: protect yarn pnp example against cypress script redefinition (#967) --- .github/workflows/example-yarn-modern-pnp.yml | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/example-yarn-modern-pnp.yml b/.github/workflows/example-yarn-modern-pnp.yml index e4ee762a1..e4d742cfd 100644 --- a/.github/workflows/example-yarn-modern-pnp.yml +++ b/.github/workflows/example-yarn-modern-pnp.yml @@ -22,4 +22,4 @@ jobs: working-directory: examples/yarn-modern-pnp # https://yarnpkg.com/cli/install install-command: yarn install - command: yarn cypress run + command: yarn run --binaries-only cypress run diff --git a/README.md b/README.md index 2d94758ce..7af654cb1 100644 --- a/README.md +++ b/README.md @@ -1106,7 +1106,7 @@ jobs: with: working-directory: examples/yarn-modern-pnp install-command: yarn install - command: yarn cypress run + command: yarn run --binaries-only cypress run ``` This example covers the [`.yarnrc.yml`](https://yarnpkg.com/configuration/yarnrc#nodeLinker) configuration when `nodeLinker` is undefined or set to `nodeLinker: pnp` corresponding to Yarn Plug'n'Play. Yarn uses this by default for projects newly created with Yarn Modern.