From 5d2d8468ffb0771b8518a7f966b04a18dc8a8494 Mon Sep 17 00:00:00 2001 From: Lachlan Miller Date: Mon, 7 Nov 2022 15:15:32 +1000 Subject: [PATCH 1/4] chore: make error more inclusive of future cypress versions --- .../errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html | 2 +- packages/errors/src/errors.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html b/packages/errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html index ac1592172472..6b86b1b7f53c 100644 --- a/packages/errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html +++ b/packages/errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html @@ -34,7 +34,7 @@ -
You are running Cypress 10 in global mode and attempting to open or migrate a project where an install of cypress cannot be found.
+    
You are running Cypress 10+ in global mode and attempting to open or migrate a project where an install of cypress cannot be found.
 
 Ensure that cypress@10 is installed in the project you are attempting to open or migrate.
 
diff --git a/packages/errors/src/errors.ts b/packages/errors/src/errors.ts
index 173099df05c9..f68bfb239457 100644
--- a/packages/errors/src/errors.ts
+++ b/packages/errors/src/errors.ts
@@ -1559,7 +1559,7 @@ export const AllCypressErrors = {
 
   MIGRATION_CYPRESS_NOT_FOUND: () => {
     return errTemplate`
-      You are running Cypress 10 in global mode and attempting to open or migrate a project where an install of ${fmt.code('cypress')} cannot be found.
+      You are running Cypress 10+ in global mode and attempting to open or migrate a project where an install of ${fmt.code('cypress')} cannot be found.
 
       Ensure that ${fmt.code('cypress@10')} is installed in the project you are attempting to open or migrate.
 

From 2442afca72ccd90cc6556fa99c1c9db5cf3579a3 Mon Sep 17 00:00:00 2001
From: Stokes Player 
Date: Mon, 7 Nov 2022 13:28:40 -0500
Subject: [PATCH 2/4] Additional wording change

Co-authored-by: Mark Noonan 
---
 packages/errors/src/errors.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/packages/errors/src/errors.ts b/packages/errors/src/errors.ts
index f68bfb239457..f1fd187aec7e 100644
--- a/packages/errors/src/errors.ts
+++ b/packages/errors/src/errors.ts
@@ -1561,7 +1561,7 @@ export const AllCypressErrors = {
     return errTemplate`
       You are running Cypress 10+ in global mode and attempting to open or migrate a project where an install of ${fmt.code('cypress')} cannot be found.
 
-      Ensure that ${fmt.code('cypress@10')} is installed in the project you are attempting to open or migrate.
+      Ensure that ${fmt.code('cypress@10')} or greater is installed in the project you are attempting to open or migrate.
 
       https://on.cypress.io/migration-guide
     `

From 1d51d2a1bf1992caea6cd7815268062e101de3f3 Mon Sep 17 00:00:00 2001
From: Stokes Player 
Date: Mon, 7 Nov 2022 13:29:21 -0500
Subject: [PATCH 3/4] Update snapshot to match

---
 .../errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/packages/errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html b/packages/errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html
index 6b86b1b7f53c..3e4a5d5009da 100644
--- a/packages/errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html
+++ b/packages/errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html
@@ -36,8 +36,8 @@
     
     
You are running Cypress 10+ in global mode and attempting to open or migrate a project where an install of cypress cannot be found.
 
-Ensure that cypress@10 is installed in the project you are attempting to open or migrate.
+Ensure that cypress@10 or greater is installed in the project you are attempting to open or migrate.
 
 https://on.cypress.io/migration-guide
 
-
\ No newline at end of file +
From fce1b511b397c9c7179b70a8abaea0bb6ad29cfe Mon Sep 17 00:00:00 2001 From: Lachlan Miller Date: Tue, 8 Nov 2022 15:43:27 +1000 Subject: [PATCH 4/4] fix test (hopefully) --- .../errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html b/packages/errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html index 3e4a5d5009da..8f4e67f89715 100644 --- a/packages/errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html +++ b/packages/errors/__snapshot-html__/MIGRATION_CYPRESS_NOT_FOUND.html @@ -40,4 +40,4 @@ https://on.cypress.io/migration-guide
-
+ \ No newline at end of file