From a04a2ea00b5f3f0eb1c37ed67e4826412d028f52 Mon Sep 17 00:00:00 2001 From: Caleb Ukle Date: Wed, 28 Dec 2022 14:13:06 -0600 Subject: [PATCH] docs(testing): redirect cy 10 generator to cy 11 (#14045) Fixes https://github.com/nrwl/nx/issues/14000 --- .../packages/cypress/documents/v11-migration-guide.md | 8 ++++++++ docs/shared/packages/cypress/cypress-v11-migration.md | 8 ++++++++ nx-dev/nx-dev/redirect-rules.config.js | 2 ++ 3 files changed, 18 insertions(+) diff --git a/docs/generated/packages/cypress/documents/v11-migration-guide.md b/docs/generated/packages/cypress/documents/v11-migration-guide.md index 69519d2908..74eb9b4802 100644 --- a/docs/generated/packages/cypress/documents/v11-migration-guide.md +++ b/docs/generated/packages/cypress/documents/v11-migration-guide.md @@ -6,6 +6,14 @@ Before continuing, make sure you have all your changes committed and have a clea You can migrate an E2E project to v11 by running the following command: +{% callout type="note" title="Generator Naming Changes" %} +If your nx version is below v15.3.0, this migration is called `migrate-to-cypress-10`. + +From v15.3.0+ this generator is called `migrate-to-cypress-11`. + +As of nx v15.1.0, if your project was already using Cypress v10, then your project will be migrated to Cypress v11 via the [standard nx migration process](/core-features/automate-updating-dependencies) +{% /callout %} + ```shell nx g @nrwl/cypress:migrate-to-cypress-11 ``` diff --git a/docs/shared/packages/cypress/cypress-v11-migration.md b/docs/shared/packages/cypress/cypress-v11-migration.md index 69519d2908..74eb9b4802 100644 --- a/docs/shared/packages/cypress/cypress-v11-migration.md +++ b/docs/shared/packages/cypress/cypress-v11-migration.md @@ -6,6 +6,14 @@ Before continuing, make sure you have all your changes committed and have a clea You can migrate an E2E project to v11 by running the following command: +{% callout type="note" title="Generator Naming Changes" %} +If your nx version is below v15.3.0, this migration is called `migrate-to-cypress-10`. + +From v15.3.0+ this generator is called `migrate-to-cypress-11`. + +As of nx v15.1.0, if your project was already using Cypress v10, then your project will be migrated to Cypress v11 via the [standard nx migration process](/core-features/automate-updating-dependencies) +{% /callout %} + ```shell nx g @nrwl/cypress:migrate-to-cypress-11 ``` diff --git a/nx-dev/nx-dev/redirect-rules.config.js b/nx-dev/nx-dev/redirect-rules.config.js index 623c1651e1..11ab0fcc7f 100644 --- a/nx-dev/nx-dev/redirect-rules.config.js +++ b/nx-dev/nx-dev/redirect-rules.config.js @@ -163,6 +163,8 @@ const guideUrls = { '/structure/project-graph-plugins': '/extending-nx/project-graph-plugins', '/guides/lerna-and-nx': '/migration/lerna-and-nx', '/cypress/v10-migration-guide': '/cypress/v11-migration-guide', + '/cypress/generators/migrate-to-cypress-10': + '/cypress/generators/migrate-to-cypress-11', }; /**