Skip to content

Conversation

MikeMcC399
Copy link
Contributor

@MikeMcC399 MikeMcC399 commented Oct 1, 2025

Additional details

Cypress was configured with @testing-library/cypress <10.1.0.

Cypress is updated to use @testing-library/[email protected] which is both the minimum version to support Cypress 15 and the latest version.

Steps to test

git clone https://github.com/cypress-io/cypress
cd cypress
n auto # or manually install Node.js 22.18.0
git clean -xfd # if repeating
npm install yarn@latest -g
yarn

confirm no peer dependency warnings related to @testing-library/cypress.

To run all system tests:

yarn test-system

How has the user experience changed?

Contributor issue only.

In Cypress packages, the @testing-library/cypress npm package is used only in devDependencies and is not shipped with the Cypress npm package or Cypress binary.

PR Tasks


Note

Updates @testing-library/cypress to 10.1.0 in app, frontend-shared, launchpad, and system test projects with corresponding lockfile changes.

  • Dependencies:
    • Bump @testing-library/cypress to 10.1.0 in packages/app, packages/frontend-shared, packages/launchpad.
    • Update system test projects to 10.1.0: system-tests/projects/vite-ct-function-api, system-tests/projects/vite-ct-object-api.
    • Refresh related entries in yarn.lock files.

Written by Cursor Bugbot for commit 0175ea2. This will update automatically on new commits. Configure here.

@cypress-app-bot
Copy link
Collaborator

Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MikeMcC399 I saw this warning yesterday and was meaning to address it. Thanks! There's quite a few of these warnings on the repo actually. Open to PRs for thos.

@MikeMcC399
Copy link
Contributor Author

@jennifer-shehane

I saw this warning yesterday and was meaning to address it. Thanks! There's quite a few of these warnings on the repo actually. Open to PRs for thos.

You're welcome!

@MikeMcC399
Copy link
Contributor Author

MikeMcC399 commented Oct 2, 2025

I made a mistake, and this PR does not remove the peer dependency warning, which now appears as a false warning that includes cypress@^15.0.0:

See https://app.circleci.com/pipelines/github/cypress-io/cypress/75415/workflows/e22f0aab-24d8-4584-b4fc-c9ac15b1caed/jobs/3183278

warning "workspace-aggregator-51318f5d-fd9a-4026-945c-33f365177626 > @packages/app > @testing-library/[email protected]" has incorrect peer dependency "cypress@^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0".

AFAIK Yarn v1 Classic does not use workspaces to satisfy peer dependencies, so there is no solution to removing the Yarn error message without changing package manager.

Even though the error message is not fixed, I suggest to go ahead with the PR so that Cypress is using a version of @testing-library/cypress which has declared itself compatible with Cypress 15. There is no functional content change in testing-library/cypress-testing-library@v10.0.2...v10.1.0, only a change to devDependencies and peerDependencies, so updating does not change anything apart from the error message.

@jennifer-shehane
Copy link
Member

@MikeMcC399 Thanks. We do have a proposal to switch to pnpm, but that's a bit down the road for us.

Copy link
Member

@jennifer-shehane jennifer-shehane left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MikeMcC399 If you update any dependencies in the system-tests directory - you have to unfortunate cd into those directories and run the install for the appropriate package manager of that product independently to get their lockfiles updated. That's what this error is https://app.circleci.com/pipelines/github/cypress-io/cypress/75415/workflows/d08112d8-3bf9-487f-8058-6b9f93fd8a48/jobs/3186146

@MikeMcC399
Copy link
Contributor Author

@jennifer-shehane

Thanks for your hint and I'm sorry I missed updating the separate yarn.lock files. I've added these now.

Also, good to hear that you're considering pnpm! I appreciate that migrating to a different package manager is not simple for a complex monorepo like Cypress uses.

@jennifer-shehane jennifer-shehane merged commit ac0ad31 into cypress-io:develop Oct 3, 2025
67 of 71 checks passed
@MikeMcC399 MikeMcC399 deleted the issue-32616-update-testing-library-cypress branch October 3, 2025 14:54
@cypress-bot
Copy link
Contributor

cypress-bot bot commented Oct 7, 2025

Released in 15.4.0.

This comment thread has been locked. If you are still experiencing this issue after upgrading to
Cypress v15.4.0, please open a new issue.

@cypress-bot cypress-bot bot locked as resolved and limited conversation to collaborators Oct 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@testing-library/[email protected] peer dependency warning for cypress >=12 <=14

4 participants