Skip to content

Commit d8884e0

Browse files
misc: update postinstall cypress open instructions (#29957)
* misc: update postinstall cypress open instructions * add spacing line * prepend dashes to command list * update semver for change --------- Co-authored-by: Jennifer Shehane <[email protected]>
1 parent 6c3e11f commit d8884e0

File tree

3 files changed

+57
-17
lines changed

3 files changed

+57
-17
lines changed

cli/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
<!-- See the ../guides/writing-the-cypress-changelog.md for details on writing the changelog. -->
2+
## 13.13.3
3+
4+
_Released 8/13/2024 (PENDING)_
5+
6+
**Misc:**
7+
8+
- Updated `cypress open` hints displayed after Cypress binary install. Addresses [#29935](https://github.com/cypress-io/cypress/issues/29935).
9+
210
## 13.13.2
311

412
_Released 7/31/2024_

cli/__snapshots__/install_spec.js

Lines changed: 42 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,13 @@ Installing Cypress (version: 1.2.3)
1818
✔ Unzipped Cypress
1919
✔ Finished Installation /cache/Cypress/1.2.3
2020
21-
You can now open Cypress by running: node_modules/.bin/cypress open
21+
You can now open Cypress by running one of the following, depending on your package manager:
2222
23-
https://on.cypress.io/installing-cypress
23+
- npx cypress open
24+
- yarn cypress open
25+
- pnpm cypress open
26+
27+
https://on.cypress.io/opening-the-app
2428
2529
2630
`
@@ -48,9 +52,13 @@ Installing Cypress (version: 1.2.3)
4852
✔ Unzipped Cypress
4953
✔ Finished Installation /cache/Cypress/1.2.3
5054
51-
You can now open Cypress by running: node_modules/.bin/cypress open
55+
You can now open Cypress by running one of the following, depending on your package manager:
56+
57+
- npx cypress open
58+
- yarn cypress open
59+
- pnpm cypress open
5260
53-
https://on.cypress.io/installing-cypress
61+
https://on.cypress.io/opening-the-app
5462
5563
5664
`
@@ -78,9 +86,13 @@ Installing Cypress (version: 1.2.3)
7886
✔ Unzipped Cypress
7987
✔ Finished Installation /cache/Cypress/1.2.3
8088
81-
You can now open Cypress by running: node_modules/.bin/cypress open
89+
You can now open Cypress by running one of the following, depending on your package manager:
8290
83-
https://on.cypress.io/installing-cypress
91+
- npx cypress open
92+
- yarn cypress open
93+
- pnpm cypress open
94+
95+
https://on.cypress.io/opening-the-app
8496
8597
8698
`
@@ -94,9 +106,13 @@ Installing Cypress (version: 1.2.3)
94106
95107
96108
97-
You can now open Cypress by running: node_modules/.bin/cypress open
109+
You can now open Cypress by running one of the following, depending on your package manager:
110+
111+
- npx cypress open
112+
- yarn cypress open
113+
- pnpm cypress open
98114
99-
https://on.cypress.io/installing-cypress
115+
https://on.cypress.io/opening-the-app
100116
101117
102118
`
@@ -121,9 +137,13 @@ Installing Cypress (version: 1.2.3)
121137
✔ Unzipped Cypress
122138
✔ Finished Installation /cache/Cypress/1.2.3
123139
124-
You can now open Cypress by running: node_modules/.bin/cypress open
140+
You can now open Cypress by running one of the following, depending on your package manager:
125141
126-
https://on.cypress.io/installing-cypress
142+
- npx cypress open
143+
- yarn cypress open
144+
- pnpm cypress open
145+
146+
https://on.cypress.io/opening-the-app
127147
128148
129149
`
@@ -187,9 +207,13 @@ Installing Cypress (version: 0.12.1)
187207
✔ Unzipped Cypress
188208
✔ Finished Installation /cache/Cypress/1.2.3
189209
190-
You can now open Cypress by running: node_modules/.bin/cypress open
210+
You can now open Cypress by running one of the following, depending on your package manager:
211+
212+
- npx cypress open
213+
- yarn cypress open
214+
- pnpm cypress open
191215
192-
https://on.cypress.io/installing-cypress
216+
https://on.cypress.io/opening-the-app
193217
194218
195219
`
@@ -287,9 +311,13 @@ Installing Cypress (version: https://cdn.cypress.io/beta/binary/0.0.0-developmen
287311
✔ Unzipped Cypress
288312
✔ Finished Installation /cache/Cypress/1.2.3
289313
290-
You can now open Cypress by running: node_modules/.bin/cypress open
314+
You can now open Cypress by running one of the following, depending on your package manager:
315+
316+
- npx cypress open
317+
- yarn cypress open
318+
- pnpm cypress open
291319
292-
https://on.cypress.io/installing-cypress
320+
https://on.cypress.io/opening-the-app
293321
294322
295323
`

cli/lib/tasks/install.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,16 @@ const displayCompletionMsg = () => {
5555

5656
logger.log()
5757
logger.log(
58-
'You can now open Cypress by running:',
59-
chalk.cyan(path.join('node_modules', '.bin', 'cypress'), 'open'),
58+
'You can now open Cypress by running one of the following, depending on your package manager:',
6059
)
6160

6261
logger.log()
63-
logger.log(chalk.grey('https://on.cypress.io/installing-cypress'))
62+
logger.log(chalk.cyan('- npx cypress open'))
63+
logger.log(chalk.cyan('- yarn cypress open'))
64+
logger.log(chalk.cyan('- pnpm cypress open'))
65+
66+
logger.log()
67+
logger.log(chalk.grey('https://on.cypress.io/opening-the-app'))
6468
logger.log()
6569
}
6670

0 commit comments

Comments
 (0)