Skip to content

Commit 8253613

Browse files
misc: use pnpm add for ct dependency scaffolding (#29056)
Co-authored-by: Jennifer Shehane <[email protected]>
1 parent 9782dbb commit 8253613

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

cli/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ _Released 3/12/2024 (PENDING)_
2020

2121
**Misc:**
2222

23+
- Changed Component Testing scaffolding instruction to `pnpm add` to add framework dependencies when a project uses pnpm as package manager. Addresses [#29052](https://github.com/cypress-io/cypress/issues/29052).
2324
- Command messages in the Cypress command logs will now truncate display at 100 lines instead of 50. Fixes [#29023](https://github.com/cypress-io/cypress/issues/29023).
2425
- Capture the `beforeTest` timestamp inside the browser for the purposes of accurately determining test start for Test Replay. Addressed in [#29061](https://github.com/cypress-io/cypress/pull/29061).
2526

packages/data-context/src/sources/WizardDataSource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export class WizardDataSource {
3131
async installDependenciesCommand () {
3232
const commands = {
3333
'npm': 'npm install -D',
34-
'pnpm': 'pnpm install -D',
34+
'pnpm': 'pnpm add -D',
3535
'yarn': 'yarn add -D',
3636
} as const
3737

packages/launchpad/cypress/e2e/project-setup.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -581,7 +581,7 @@ describe('Launchpad: Setup Project', () => {
581581
cy.get('[data-testid="select-framework"]').click()
582582
cy.findByText('Create React App').click()
583583
cy.contains('button', 'Next step').should('not.be.disabled').click()
584-
cy.findByDisplayValue('pnpm install -D react-scripts react-dom react')
584+
cy.findByDisplayValue('pnpm add -D react-scripts react-dom react')
585585
})
586586

587587
// TODO: Had to revert due to regression: https://github.com/cypress-io/cypress/pull/26452

0 commit comments

Comments
 (0)