Skip to content

fix(e2e): Disable testing token for flaky test #5672

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from

Conversation

panteliselef
Copy link
Member

@panteliselef panteliselef commented Apr 19, 2025

Description

The @clerk/testing package is overriding .route() rules for our tests cases inconsistently. Example:
our tests either abort or fulfill with a dummy response, but the @clerk/testing may fulfill with the actual response due to a race condition.

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:

@panteliselef panteliselef self-assigned this Apr 19, 2025
Copy link

vercel bot commented Apr 19, 2025

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

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ⬜️ Skipped (Inspect) Apr 19, 2025 5:15pm

Copy link

changeset-bot bot commented Apr 19, 2025

🦋 Changeset detected

Latest commit: 6c6d91b

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

@panteliselef panteliselef requested review from jacekradko and a team April 19, 2025 17:19
@jacekradko
Copy link
Member

Nice find @panteliselef 👏🏼 . It might be a good idea to surface some debug log whenever we intercept routes behind the scenes to at least make it a little more transparent about what's going on

@panteliselef
Copy link
Member Author

handled by #5673

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants