mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-30 04:33:53 +00:00
* style: update chat layout and spacing for improved UI consistency - Adjusted margin and padding for .chat-thread and .content--chat to enhance layout. - Consolidated CSS selectors for better readability and maintainability. - Introduced new test for log parsing functionality to ensure accurate message extraction. * UI: polish agent skills, chat images, and sidebar status * test: stabilize vitest helper export types * UI: address review feedback on agents refresh and chat styles * test: update outbound gateway client fixture values * test: narrow shared ip fixtures to IPv4
23 lines
605 B
TypeScript
23 lines
605 B
TypeScript
import { vi } from "vitest";
|
|
import {
|
|
inspectPortUsage,
|
|
killProcessTree,
|
|
schtasksCalls,
|
|
schtasksResponses,
|
|
} from "./schtasks-fixtures.js";
|
|
|
|
vi.mock("../schtasks-exec.js", () => ({
|
|
execSchtasks: async (argv: string[]) => {
|
|
schtasksCalls.push(argv);
|
|
return schtasksResponses.shift() ?? { code: 0, stdout: "", stderr: "" };
|
|
},
|
|
}));
|
|
|
|
vi.mock("../../infra/ports.js", () => ({
|
|
inspectPortUsage: (port: number) => inspectPortUsage(port),
|
|
}));
|
|
|
|
vi.mock("../../process/kill-tree.js", () => ({
|
|
killProcessTree: (pid: number, opts?: { graceMs?: number }) => killProcessTree(pid, opts),
|
|
}));
|