Skip to content

Conversation

@continue
Copy link

@continue continue bot commented Oct 21, 2025

Summary

This PR adds a new getAllAdmins() function to the Users API that returns all users with the 'admin' role.

Changes

  • ✅ Added getAllAdmins() function to api/users.ts
  • ✅ Proper TypeScript typing (returns User[])
  • ✅ JSDoc documentation with parameter and return type descriptions
  • ✅ Comprehensive test suite with 3 test cases:
    • Verifies correct admin users are returned
    • Ensures return type is an array
    • Validates only admin role users are included

Testing

The function is fully tested in __tests__/users.test.ts with coverage for:

  • Correct filtering of admin users
  • Array return type validation
  • Role-specific filtering

This agent session was co-authored by bekah-hawrot-weigel and Continue.

- Added getAllAdmins() function to api/users.ts
- Returns all users with 'admin' role
- Includes JSDoc documentation
- Added comprehensive test suite covering:
  - Returns correct admin users
  - Returns an array
  - Filters only admin role users

Generated with [Continue](https://continue.dev)

Co-Authored-By: Continue <[email protected]>
Co-authored-by: [email protected]
@BekahHW BekahHW closed this Oct 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants