- Add proman.yaml with 8 packages in dependency order - Add @shazhou/proman as devDependency - Replace root scripts: build/test/check/format → proman commands - Keep typecheck script for standalone tsc --build Fixes #27
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
import { beforeEach, describe, expect, test, vi } from 'vitest';
|
||||
const { mockChatCompletionWithTools, mockAppendSessionTurn, mockExecuteBuiltinTool } = vi.hoisted(() => ({
|
||||
mockChatCompletionWithTools: vi.fn(async () => ({
|
||||
content: "---\nstatus: done\n---",
|
||||
toolCalls: [],
|
||||
})),
|
||||
mockAppendSessionTurn: vi.fn(async () => {}),
|
||||
mockExecuteBuiltinTool: vi.fn(async () => "tool-result"),
|
||||
}));
|
||||
import { beforeEach, describe, expect, test, vi } from "vitest";
|
||||
|
||||
const { mockChatCompletionWithTools, mockAppendSessionTurn, mockExecuteBuiltinTool } = vi.hoisted(
|
||||
() => ({
|
||||
mockChatCompletionWithTools: vi.fn(async () => ({
|
||||
content: "---\nstatus: done\n---",
|
||||
toolCalls: [],
|
||||
})),
|
||||
mockAppendSessionTurn: vi.fn(async () => {}),
|
||||
mockExecuteBuiltinTool: vi.fn(async () => "tool-result"),
|
||||
}),
|
||||
);
|
||||
|
||||
vi.mock("../src/llm/index.js", () => ({
|
||||
chatCompletionWithTools: mockChatCompletionWithTools,
|
||||
|
||||
Reference in New Issue
Block a user