Skip to content

Add tests for the integrations API client #271

Open

Description

@abhishekgahlot2

integrations-api.ts picks a different URL for GitHub and Slack, treats some error codes as 'still waiting' and checks the connect answer, and none of it has a test.

Where to start

  1. Add integrations-api.test.ts next to it that stubs fetch the way other API tests in the folder do.
  2. Cover the /org path for github and slack against other apps, 400 and 409 from the callback returning null, other errors throwing, and a missing redirectUrl throwing.

Code to look at:

Done when

  • The new test file covers every exported function in integrations-api.ts.
  • cd frontend && bun test passes.

Free to try

Sign up free at app.useagent.org. New accounts get free model credits (GLM or Claude Opus, up to a limit) and free cloud sandbox time, enough to finish this task without paying or adding a key.

Send it a small task in plain words and watch it work. You'll see the screens this issue is about. The link in the sign-up email works for 24 hours. Not there? Check spam.

Stuck? Comment here with a screenshot and we'll help.

Keep private details out of here

This page is public. Don't post your real email, phone number, address, payment details, API keys, or screenshots that show any of them. Send anything private, including how you'd like to be paid, to hi@useagent.org with a link to your comment here.

Claim it

Comment /take and the issue is assigned to you. First come, first served.

Rules

  • Use the app while you work, and put before and after screenshots or a short recording in your pull request. For backend or docs work, show the result end to end.
  • One change per pull request. Run the checks in CONTRIBUTING.md.
  • AI help is fine, blind AI output is not. You must understand, run and explain every line you submit.
  • Untested or generated pull requests, and pull requests on an issue someone else claimed, are closed without a reply and don't count for Hacktoberfest.

Activity

  1. Shahmeerdv commented on Nov 7, 2026

    @Shahmeerdv

    /take

  2. github-actions commented on Nov 7, 2026

    @github-actions

    @Shahmeerdv it's yours. If nothing is pushed within a week, the issue opens up again.

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions