mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-22 14:41:34 +00:00
test: stabilize gate regressions
This commit is contained in:
@@ -9,9 +9,13 @@ vi.mock("../../runtime.js", () => ({
|
||||
defaultRuntime: runtime,
|
||||
}));
|
||||
|
||||
vi.mock("../../terminal/theme.js", () => ({
|
||||
colorize: (_rich: boolean, _theme: unknown, text: string) => text,
|
||||
}));
|
||||
vi.mock("../../terminal/theme.js", async (importOriginal) => {
|
||||
const actual = await importOriginal<typeof import("../../terminal/theme.js")>();
|
||||
return {
|
||||
...actual,
|
||||
colorize: (_rich: boolean, _theme: unknown, text: string) => text,
|
||||
};
|
||||
});
|
||||
|
||||
vi.mock("../../commands/onboard-helpers.js", () => ({
|
||||
resolveControlUiLinks: () => ({ httpUrl: "http://127.0.0.1:18789" }),
|
||||
|
||||
Reference in New Issue
Block a user