mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-04 05:42:02 +00:00
test: speed up cli and command suites
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { createGlobalCommandRunner } from "./shared.js";
|
||||
|
||||
const runCommandWithTimeout = vi.fn();
|
||||
const runCommandWithTimeout = vi.hoisted(() => vi.fn());
|
||||
|
||||
vi.mock("../../process/exec.js", () => ({
|
||||
runCommandWithTimeout,
|
||||
}));
|
||||
|
||||
const { createGlobalCommandRunner } = await import("./shared.js");
|
||||
|
||||
describe("createGlobalCommandRunner", () => {
|
||||
beforeEach(() => {
|
||||
vi.clearAllMocks();
|
||||
|
||||
Reference in New Issue
Block a user