fix: Add uuid to mock session objects in organization validation tests#26455
Merged
hariombalhara merged 1 commit intodevin/add-uuid-1765964723from Jan 5, 2026
Merged
Conversation
Co-Authored-By: hariom@cal.com <hariombalhara@gmail.com>
Contributor
🤖 Devin AI EngineerI'll be helping with this pull request! Here's what you should know: ✅ I will automatically:
Note: I can only respond to comments from users who have write access to this repository. ⚙️ Control Options:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Fixes TypeScript type errors in organization validation test files caused by the parent PR #25963 which added
uuidas a required field onSession.user.After a recent merge brought in new test files (
validateUserHasOrg.test.tsandvalidateUserHasOrgAdmin.test.ts), the mock session objects in these files were missing the requireduuidproperty, causing 12 type errors during CI typecheck.This PR adds
uuid: "test-uuid-123"to all mock session user objects in both test files.Mandatory Tasks (DO NOT REMOVE)
How should this be tested?
yarn type-check:ci --forceand verify no type errors related tovalidateUserHasOrg.test.tsorvalidateUserHasOrgAdmin.test.tsHuman Review Checklist
uuidis added to all 12 mock session objects that were causing type errors (4 invalidateUserHasOrg.test.ts, 8 invalidateUserHasOrgAdmin.test.ts)"test-uuid-123"is appropriate for test purposes (no test logic depends on unique UUIDs)Link to Devin run: https://app.devin.ai/sessions/b0276d8c67b14ebc8588f6c1ef40594e
Requested by: hariom@cal.com (@hariombalhara)