Skip to content

test(agent-orchestrator): use vitest mock for available agents provider - #13297

Merged
lalalune merged 1 commit into
developfrom
fix/agent-orchestrator-available-agents-vitest-mock
Jul 4, 2026
Merged

lalalune merged 1 commit into
developfrom
fix/agent-orchestrator-available-agents-vitest-mock

Conversation

@lalalune

@lalalune lalalune commented Jul 4, 2026

Copy link
Copy Markdown
Member

Summary

Fixes the available-agents.test.ts harness after #13289 introduced import { mock } from "bun:test", which the package's Vitest command cannot resolve.

The test still installs the framework-state mock before dynamically importing availableAgentsProvider, but uses vi.mock(...) so it runs under the existing Vitest harness.

Verification

bun run --cwd plugins/plugin-agent-orchestrator test -- __tests__/unit/available-agents.test.ts

Result: 1 test file passed, 5 tests passed.

@greptile-apps greptile-apps 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.

Your trial has ended. Reactivate Greptile to resume code reviews.

@coderabbitai

coderabbitai Bot commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 3eb63885-94f2-4f77-a1d7-2f9b023cc399

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/agent-orchestrator-available-agents-vitest-mock

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@lalalune
lalalune merged commit 501a50c into develop Jul 4, 2026
19 of 37 checks passed
@lalalune
lalalune deleted the fix/agent-orchestrator-available-agents-vitest-mock branch July 4, 2026 15:46
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