Skip to content

Conversation

@wobsoriano
Copy link
Member

@wobsoriano wobsoriano commented Jul 9, 2025

Description

This PR relaxes the Cypress peer dependency in @clerk/testing from ^13 to ^13 || ^14.

No code changes were required, as Cypress 14 does not introduce breaking changes that affect our usage (per Cypress 14 changelog).

Related:

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

Summary by CodeRabbit

  • Documentation
    • Updated prerequisites to specify support for Cypress v13 and v14.
  • Chores
    • Expanded Cypress peer dependency to include both v13 and v14 for improved compatibility.
    • Added a changeset entry documenting this update.
    • Configured package manager to treat Cypress as a built dependency.

@vercel
Copy link

vercel bot commented Jul 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 9, 2025 4:50pm

@changeset-bot
Copy link

changeset-bot bot commented Jul 9, 2025

🦋 Changeset detected

Latest commit: 0d77cc8

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@clerk/testing Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Jul 9, 2025

📝 Walkthrough

Walkthrough

The changes update the testing package to explicitly support Cypress versions 13 and 14 by modifying the README documentation and expanding the peerDependencies range in package.json from "^13" to "^13 || ^14". The devDependencies version of Cypress was also updated from "^13.9.0" to "^14.5.1". A new changeset file was added to document this update. Additionally, the root package.json was modified to include a pnpm configuration specifying "cypress" as an only built dependency. No changes were made to Playwright requirements or to any exported or public entities.

Suggested reviewers

  • wobsoriano

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between be63ce2 and 0d77cc8.

⛔ Files ignored due to path filters (1)
  • pnpm-lock.yaml is excluded by !**/pnpm-lock.yaml
📒 Files selected for processing (3)
  • package.json (1 hunks)
  • packages/testing/README.md (1 hunks)
  • packages/testing/package.json (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • package.json
🚧 Files skipped from review as they are similar to previous changes (2)
  • packages/testing/README.md
  • packages/testing/package.json
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: Build Packages
  • GitHub Check: Formatting | Dedupe | Changeset
  • GitHub Check: Analyze (javascript-typescript)

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (3)
packages/testing/package.json (2)

80-83: Consider bumping the local devDependencies pin to v14 as well

peerDependencies now allow v14, but devDependencies.cypress is still hard-pinned to ^13.9.0.
Keeping the local pin one major version behind means CI will never exercise the library against v14 – the very scenario the peer range now claims to support.

-    "cypress": "^13.9.0"
+    "cypress": "^14.0.0"

(or loosen the range to ^13 || ^14).
This ensures the examples, type‐checks and any future tests run on the latest supported major.


84-87: Peer range looks good – minor nit: use parentheses for clarity

"^13 || ^14" is valid, but npm’s semver parser can sometimes mis-read spacing.
The conventional style is to group with parentheses and omit spaces:

-    "cypress": "^13 || ^14"
+    "cypress": "^(13 || 14)"

Not mandatory, just a readability / tooling-compatibility improvement.

packages/testing/README.md (1)

37-41: Wording tweak for version requirements

The phrasing “Cypress v13 or v14” can be mis-read as excluding future minors/patches.
Suggest clarifying that any 13.x or 14.x is acceptable:

-Playwright v1+ or Cypress v13 or v14
+Playwright v1+ or Cypress v13.x or 14.x

Purely editorial – feel free to ignore.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4e3393f and 7a40b75.

📒 Files selected for processing (2)
  • packages/testing/README.md (1 hunks)
  • packages/testing/package.json (1 hunks)
🧰 Additional context used
📓 Path-based instructions (4)
`packages/**/README.md`: Maintain up-to-date README files for each package

packages/**/README.md: Maintain up-to-date README files for each package

📄 Source: CodeRabbit Inference Engine (.cursor/rules/development.mdc)

List of files the instruction was applied to:

  • packages/testing/README.md
`**/*.md`: Follow all instructions, patterns and conventions that are defined in these MD files.

**/*.md: Follow all instructions, patterns and conventions that are defined in these MD files.

⚙️ Source: CodeRabbit Configuration File

List of files the instruction was applied to:

  • packages/testing/README.md
`packages/*/package.json`: All packages must be published under the @clerk namespace

packages/*/package.json: All packages must be published under the @clerk namespace

📄 Source: CodeRabbit Inference Engine (.cursor/rules/global.mdc)

List of files the instruction was applied to:

  • packages/testing/package.json
`packages/*/package.json`: All publishable packages must be located in the 'pack...

packages/*/package.json: All publishable packages must be located in the 'packages/' directory.
All packages must be published under the @clerk namespace on npm.
Semantic versioning must be used across all packages.

📄 Source: CodeRabbit Inference Engine (.cursor/rules/monorepo.mdc)

List of files the instruction was applied to:

  • packages/testing/package.json
🧠 Learnings (3)
📓 Common learnings
Learnt from: dstaley
PR: clerk/javascript#6116
File: .changeset/tangy-garlics-say.md:1-2
Timestamp: 2025-06-13T16:09:53.061Z
Learning: In the Clerk JavaScript repository, contributors create intentionally empty changeset files (containing only the YAML delimiters) when a PR touches only non-published parts of the codebase (e.g., sandbox assets). This signals that no package release is required, so such changesets should not be flagged as missing content.
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/monorepo.mdc:0-0
Timestamp: 2025-06-30T10:30:56.197Z
Learning: Applies to packages/{clerk-js,elements,themes}/**/* : Visual regression testing should be performed for UI components.
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/development.mdc:0-0
Timestamp: 2025-06-30T10:29:42.997Z
Learning: Update documentation for API changes
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/monorepo.mdc:0-0
Timestamp: 2025-06-30T10:30:56.197Z
Learning: Applies to packages/*/package.json : Semantic versioning must be used across all packages.
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/development.mdc:0-0
Timestamp: 2025-06-30T10:29:42.997Z
Learning: Follow semantic versioning for all packages
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/monorepo.mdc:0-0
Timestamp: 2025-06-30T10:30:56.197Z
Learning: Applies to packages/@clerk/*/package.json : Framework packages must depend on '@clerk/clerk-js' for core functionality.
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/monorepo.mdc:0-0
Timestamp: 2025-06-30T10:30:56.197Z
Learning: Applies to integration/**/*.{test,spec}.{js,ts,tsx} : Integration tests should use Playwright as the test runner.
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/development.mdc:0-0
Timestamp: 2025-06-30T10:29:42.997Z
Learning: Applies to packages/**/CHANGELOG.md : Maintain detailed changelogs
packages/testing/README.md (8)
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/development.mdc:0-0
Timestamp: 2025-06-30T10:29:42.997Z
Learning: Update documentation for API changes
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/monorepo.mdc:0-0
Timestamp: 2025-06-30T10:30:56.197Z
Learning: Applies to integration/**/*.{test,spec}.{js,ts,tsx} : Integration tests should use Playwright as the test runner.
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/development.mdc:0-0
Timestamp: 2025-06-30T10:29:42.997Z
Learning: Integration tests using Playwright for E2E scenarios
Learnt from: dstaley
PR: clerk/javascript#6116
File: .changeset/tangy-garlics-say.md:1-2
Timestamp: 2025-06-13T16:09:53.061Z
Learning: In the Clerk JavaScript repository, contributors create intentionally empty changeset files (containing only the YAML delimiters) when a PR touches only non-published parts of the codebase (e.g., sandbox assets). This signals that no package release is required, so such changesets should not be flagged as missing content.
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/global.mdc:0-0
Timestamp: 2025-06-30T10:30:13.397Z
Learning: Node.js is required for development and running scripts
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/global.mdc:0-0
Timestamp: 2025-06-30T10:30:13.397Z
Learning: Use pnpm test:integration:* to run framework-specific integration tests
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/monorepo.mdc:0-0
Timestamp: 2025-06-30T10:30:56.197Z
Learning: Applies to **/*.{test,spec}.{js,ts,tsx} : Unit tests should use Jest or Vitest as the test runner.
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/global.mdc:0-0
Timestamp: 2025-06-30T10:30:13.397Z
Learning: Use pnpm as the package manager for all dependency management and scripts
packages/testing/package.json (6)
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/monorepo.mdc:0-0
Timestamp: 2025-06-30T10:30:56.197Z
Learning: Applies to packages/*/package.json : Semantic versioning must be used across all packages.
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/monorepo.mdc:0-0
Timestamp: 2025-06-30T10:30:56.197Z
Learning: Applies to packages/{clerk-js,elements,themes}/**/* : Visual regression testing should be performed for UI components.
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/monorepo.mdc:0-0
Timestamp: 2025-06-30T10:30:56.197Z
Learning: Applies to packages/@clerk/*/package.json : Framework packages must depend on '@clerk/clerk-js' for core functionality.
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/development.mdc:0-0
Timestamp: 2025-06-30T10:29:42.997Z
Learning: Applies to packages/**/index.{js,ts} : Use tree-shaking friendly exports
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/monorepo.mdc:0-0
Timestamp: 2025-06-30T10:30:56.197Z
Learning: Applies to integration/**/*.{test,spec}.{js,ts,tsx} : Integration tests should use Playwright as the test runner.
Learnt from: CR
PR: clerk/javascript#0
File: .cursor/rules/development.mdc:0-0
Timestamp: 2025-06-30T10:29:42.997Z
Learning: Integration tests using Playwright for E2E scenarios
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: semgrep-cloud-platform/scan
  • GitHub Check: Formatting | Dedupe | Changeset
  • GitHub Check: Build Packages
  • GitHub Check: semgrep/ci
  • GitHub Check: Analyze (javascript-typescript)
🔇 Additional comments (1)
packages/testing/package.json (1)

1-103: Release tracking: add a changeset for this peer-dependency update

package.json changed in a publishable package, but no .changeset/*.md file accompanies the PR.
Without it, the automated release pipeline will skip publishing a new patch containing the Cypress-v14 support.

Would you add a tiny changeset (e.g. “chore: allow Cypress v14 in peer deps” with patch bump)?

@pkg-pr-new
Copy link

pkg-pr-new bot commented Jul 9, 2025

Open in StackBlitz

@clerk/agent-toolkit

npm i https://pkg.pr.new/@clerk/agent-toolkit@6274

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@6274

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@6274

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@6274

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@6274

@clerk/dev-cli

npm i https://pkg.pr.new/@clerk/dev-cli@6274

@clerk/elements

npm i https://pkg.pr.new/@clerk/elements@6274

@clerk/clerk-expo

npm i https://pkg.pr.new/@clerk/clerk-expo@6274

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@6274

@clerk/express

npm i https://pkg.pr.new/@clerk/express@6274

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@6274

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@6274

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@6274

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@6274

@clerk/clerk-react

npm i https://pkg.pr.new/@clerk/clerk-react@6274

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@6274

@clerk/remix

npm i https://pkg.pr.new/@clerk/remix@6274

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@6274

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@6274

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@6274

@clerk/themes

npm i https://pkg.pr.new/@clerk/themes@6274

@clerk/types

npm i https://pkg.pr.new/@clerk/types@6274

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@6274

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@6274

commit: 0d77cc8

@wobsoriano wobsoriano merged commit 02a00ba into main Jul 9, 2025
39 checks passed
@wobsoriano wobsoriano deleted the rob/cypress-14 branch July 9, 2025 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants