Skip to content

Commit a80fbf5

Browse files
committed
test: add integration tests for setting primary email and phone number
Add comprehensive test coverage for updating user primary contact details through the Clerk API, including: - Test for changing the primary email address to a secondary email and restoring the original - Test for changing the primary phone number to a secondary phone and restoring the original - Mock API response fixtures for both email and phone update workflows - Validation that primary identifier changes are properly reflected in the user object and client session
1 parent 894fde9 commit a80fbf5

File tree

11 files changed

+141
-0
lines changed

11 files changed

+141
-0
lines changed

packages/clerk_auth/test/_responses/clerk_api/user_details/set_primary_email/001.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/clerk_auth/test/_responses/clerk_api/user_details/set_primary_email/002.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/clerk_auth/test/_responses/clerk_api/user_details/set_primary_email/003.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/clerk_auth/test/_responses/clerk_api/user_details/set_primary_email/004.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)