docs: document remaining command tests · openclaw/openclaw@50dcaad
steipete
·
2026-06-05
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Agent via gateway tests cover gateway-backed agent command dispatch and session loading. |
1 | 2 | import fs from "node:fs"; |
2 | 3 | import os from "node:os"; |
3 | 4 | import path from "node:path"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Auth choice tests cover auth choice application, provider config, and credential prompts. |
1 | 2 | import fs from "node:fs/promises"; |
2 | 3 | import path from "node:path"; |
3 | 4 | import { afterAll, afterEach, beforeAll, describe, expect, it, vi } from "vitest"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Backup command tests cover backup create, verify, and runtime output paths. |
1 | 2 | import fs from "node:fs/promises"; |
2 | 3 | import os from "node:os"; |
3 | 4 | import path from "node:path"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Channels resolve tests cover channel/account selection and command output for message routing. |
1 | 2 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import { channelsResolveCommand } from "./channels/resolve.js"; |
3 | 4 | |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Channels status error-surface tests cover Signal runtime errors in channel status output. |
1 | 2 | import { afterEach, beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import { collectStatusIssuesFromLastError } from "../plugin-sdk/status-helpers.js"; |
3 | 4 | import { setActivePluginRegistry } from "../plugins/runtime.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Config validation tests cover config snapshot validation and command error handling. |
1 | 2 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import type { PluginCompatibilityNotice } from "../plugins/status.js"; |
3 | 4 | import { createCompatibilityNotice } from "../plugins/status.test-helpers.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Daemon install plan tests cover shared install plan validation and platform warning helpers. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import { |
3 | 4 | resolveDaemonInstallRuntimeInputs, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Doctor deprecated CLI profile tests cover legacy auth profile migration and warnings. |
1 | 2 | import { beforeEach, describe, expect, it, vi } from "vitest"; |
2 | 3 | import type { AuthProfileStore } from "../agents/auth-profiles/types.js"; |
3 | 4 | import type { OpenClawConfig } from "../config/config.js"; |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Doctor completion tests cover final doctor status summaries and completion messaging. |
1 | 2 | import { describe, expect, it } from "vitest"; |
2 | 3 | import { |
3 | 4 | shellCompletionStatusToHealthFindings, |
|
| Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +// Doctor config-flow include-warning tests cover config include warnings during repair. |
1 | 2 | import { describe, expect, it, vi } from "vitest"; |
2 | 3 | import { note } from "../../packages/terminal-core/src/note.js"; |
3 | 4 | import { noteIncludeConfinementWarning } from "./doctor-config-analysis.js"; |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。