chore: Fix types in tests 13/N.

This commit is contained in:
cpojer
2026-02-17 11:58:39 +09:00
parent 81fd771cb9
commit 50fd2a99ba
15 changed files with 43 additions and 40 deletions

View File

@@ -1,6 +1,7 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
import { resetSubagentRegistryForTests } from "../../agents/subagent-registry.js";
import type { SpawnSubagentResult } from "../../agents/subagent-spawn.js";
import type { OpenClawConfig } from "../../config/config.js";
const hoisted = vi.hoisted(() => {
const spawnSubagentDirectMock = vi.fn();
@@ -53,7 +54,7 @@ function forbiddenResult(error: string): SpawnSubagentResult {
const baseCfg = {
session: { mainKey: "main", scope: "per-sender" },
};
} satisfies OpenClawConfig;
describe("/subagents spawn command", () => {
beforeEach(() => {