fix(ci): align engine/schema test stubs with cli-agent surface
The cli-agent executor feature added engine.getCliAgentRuntime() (called by the CLI dashboard command at load) and bumped @fusion/core SCHEMA_VERSION 108→110. Update the stale test stubs: - cli dashboard.test.ts: add getCliAgentRuntime() to the mock FnAgent class (returns undefined; runDashboard handles the no-runtime path). Fixes 52 failures all rooted at `cwdEngine?.getCliAgentRuntime is not a function`. - roadmap-store.test.ts: the roadmap store layers on core's Database, so its schema version tracks core; assert 110 instead of 108. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -495,6 +495,10 @@ vi.mock("@fusion/engine", async (importOriginal) => {
|
||||
return { stop: vi.fn() };
|
||||
}
|
||||
|
||||
getCliAgentRuntime(): undefined {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
async onMerge(taskId: string): Promise<unknown> {
|
||||
return aiMergeTask(this.store, this.cwd, taskId, {
|
||||
pool: this.pool,
|
||||
|
||||
Reference in New Issue
Block a user