Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,15 @@
* Verifies availableAgentsProvider.
* Deterministic unit test of pure helpers; no runtime, no live model.
*/
import { mock } from "bun:test";
import { describe, expect, it, vi } from "vitest";

// Control the framework-state probe so we can drive its failure path
// deterministically without touching the filesystem / env discovery it does.
const getTaskAgentFrameworkStateMock = vi.fn();
mock.module("../../src/services/task-agent-frameworks.js", () => {
return {
getTaskAgentFrameworkState: (...args: unknown[]) =>
getTaskAgentFrameworkStateMock(...args),
};
});
vi.mock("../../src/services/task-agent-frameworks.js", () => ({
getTaskAgentFrameworkState: (...args: unknown[]) =>
getTaskAgentFrameworkStateMock(...args),
}));

import {
memory,
Expand Down
Loading