Skip to content

chore(tests): delete mocked github/list-user-orgs.test.ts#3501

Merged
viktormarinho merged 1 commit into
mainfrom
viktormarinho/viktor-marinho/delete-github-list-orgs-test
May 27, 2026
Merged

chore(tests): delete mocked github/list-user-orgs.test.ts#3501
viktormarinho merged 1 commit into
mainfrom
viktormarinho/viktor-marinho/delete-github-list-orgs-test

Conversation

@viktormarinho

@viktormarinho viktormarinho commented May 27, 2026

Copy link
Copy Markdown
Contributor

Summary

596 lines of `vi.mock` / `mock.module` -driven tests for `GITHUB_LIST_USER_ORGS` — stubs the OAuth refresh helper, mocks `global.fetch` for GitHub API responses, fakes `BoundAuthClient`.

Per the migration plan: "if we have a recorded fixture; otherwise delete (don't keep mocked fetch tests)". We don't have a recorded GitHub fixture, and writing one would require a real GitHub OAuth flow inside CI — not feasible. The tool itself is exercised through real GitHub in development.

This row is just a deletion — no Playwright replacement.

🤖 Generated with Claude Code


Summary by cubic

Removed the mocked test apps/mesh/src/tools/github/list-user-orgs.test.ts (596 lines) for GITHUB_LIST_USER_ORGS per the test migration plan. No recorded GitHub fixture exists, so we’re dropping brittle vi.mock/global.fetch tests; no functional code changes.

Written for commit 936cf93. Summary will update on new commits. Review in cubic

596 lines of vi.mock-driven tests for GITHUB_LIST_USER_ORGS — stubs
refreshAccessToken, mocks global.fetch, fakes BoundAuthClient.

Per the migration plan: "if we have a recorded fixture; otherwise
delete (don't keep mocked fetch tests)". We don't have a recorded
GitHub fixture, and writing one would require a real GitHub OAuth flow
in tests — not feasible. The tool itself is exercised through real
GitHub calls in development.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@viktormarinho viktormarinho merged commit 25f30a8 into main May 27, 2026
15 checks passed
@github-actions

Copy link
Copy Markdown
Contributor

🧪 Benchmark

Should we run the Virtual MCP strategy benchmark for this PR?

React with 👍 to run the benchmark.

Reaction Action
👍 Run quick benchmark (10 & 128 tools)

Benchmark will run on the next push after you react.

@viktormarinho viktormarinho deleted the viktormarinho/viktor-marinho/delete-github-list-orgs-test branch May 27, 2026 22:04
@github-actions

Copy link
Copy Markdown
Contributor

Release Options

Suggested: Patch (2.361.2) — based on chore: prefix

React with an emoji to override the release type:

Reaction Type Next Version
👍 Prerelease 2.361.2-alpha.1
🎉 Patch 2.361.2
❤️ Minor 2.362.0
🚀 Major 3.0.0

Current version: 2.361.1

Note: If multiple reactions exist, the smallest bump wins. If no reactions, the suggested bump is used (default: patch).

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Re-trigger cubic

tlgimenes added a commit that referenced this pull request May 30, 2026
Resolve conflicts in the GitHub App-scope consumer refactor against main:

- github-clone-info.ts: keep bot-identity buildCloneInfo (no /user call);
  merge main's token-baking + sandbox-lifecycle docstring and keep main's
  new buildAnonymousCloneInfo for public-repo clones.
- list-user-orgs.ts: keep the /installation/repositories refactor and adopt
  main's "delete cached token only on definitive invalid_grant" behavior
  (drop explicit tokenStorage.delete on 401; delegate to refreshAndStore).
- Delete mocked-fetch tests list-user-orgs.test.ts (modify/delete: honor
  main's deliberate removal in #3501) and github-clone-info.test.ts (same
  mock.module + global.fetch pattern), per main's policy of not keeping
  mocked GitHub fetch tests.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

1 participant