Repository navigation
test(mosaic): cover switcher model paths that no test caught - #10467
alexcarpenter wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: efdfdae The changes in this PR will be included in the next version bump. This PR includes changesets to release 0 packagesWhen 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 |
|
No actionable comments were generated in the recent review.
|
@clerk/astro
@clerk/backend
@clerk/chrome-extension
@clerk/clerk-js
@clerk/electron
@clerk/electron-passkeys
@clerk/eslint-plugin
@clerk/expo
@clerk/expo-biometrics
@clerk/expo-google-signin
@clerk/expo-native-components
@clerk/expo-passkeys
@clerk/express
@clerk/fastify
@clerk/hono
@clerk/localizations
@clerk/mosaic
@clerk/nextjs
@clerk/nuxt
@clerk/react
@clerk/react-router
@clerk/shared
@clerk/tanstack-react-start
@clerk/testing
@clerk/ui
@clerk/upgrade
@clerk/vue
commit: |
Description
Adds feature tests for switcher model behavior that no existing test caught. Each new test fails when the matching line in
switcher.model.tsxis broken by hand (a hand-run mutation pass over the model).User button:
after_switch_session_url.fallback.Organization switcher:
afterSelectPersonalUrl(with:id) andafterSelectOrganizationUrl(as a function) decide where a selection lands.afterLeaveOrganizationUrl,afterCreateOrganizationUrlandskipInvitationScreenare passed through to the profile and create flows.Removes "drops revoked and expired invitations, which have nothing to accept".
useOrganizationListonly requestsstatus=pendinginvitations (packages/shared/src/react/hooks/useOrganizationList.tsx), so that test passed with or without the model's filter.Checklist
pnpm testruns as expected.pnpm buildruns as expected.Type of change