mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 15:58:27 +00:00
refactor(agent): dedupe harness and command workflows
This commit is contained in:
20
src/commands/test-runtime-config-helpers.ts
Normal file
20
src/commands/test-runtime-config-helpers.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import { vi } from "vitest";
|
||||
|
||||
export const baseConfigSnapshot = {
|
||||
path: "/tmp/openclaw.json",
|
||||
exists: true,
|
||||
raw: "{}",
|
||||
parsed: {},
|
||||
valid: true,
|
||||
config: {},
|
||||
issues: [],
|
||||
legacyIssues: [],
|
||||
};
|
||||
|
||||
export function createTestRuntime() {
|
||||
return {
|
||||
log: vi.fn(),
|
||||
error: vi.fn(),
|
||||
exit: vi.fn(),
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user