test: preload onboarding command modules in hot suites

This commit is contained in:
Peter Steinberger
2026-02-22 15:01:51 +00:00
parent b6ac0eef5d
commit 71747a7688
3 changed files with 32 additions and 13 deletions

View File

@@ -29,6 +29,8 @@ vi.mock("../infra/outbound/targets.js", async () => {
};
});
const { deliverAgentCommandResult } = await import("./agent/delivery.js");
describe("deliverAgentCommandResult", () => {
function createRuntime(): RuntimeEnv {
return {
@@ -54,7 +56,6 @@ describe("deliverAgentCommandResult", () => {
const deps = {} as CliDeps;
const runtime = params.runtime ?? createRuntime();
const result = createResult(params.resultText);
const { deliverAgentCommandResult } = await import("./agent/delivery.js");
await deliverAgentCommandResult({
cfg,