mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-02 16:33:37 +00:00
test: type cli test mocks
This commit is contained in:
@@ -10,7 +10,14 @@ const DISCORD_REPO_INSTALL_SPEC = repoInstallSpec("discord");
|
||||
|
||||
const setVerboseMock = vi.fn();
|
||||
const emitCliBannerMock = vi.fn();
|
||||
const ensureConfigReadyMock = vi.fn(async () => {});
|
||||
type EnsureConfigReadyOptions = {
|
||||
beforeStateMigrations?: () => Promise<boolean>;
|
||||
commandPath?: string[];
|
||||
requireConfig?: boolean;
|
||||
};
|
||||
const ensureConfigReadyMock = vi.fn<(_opts: EnsureConfigReadyOptions) => Promise<void>>(
|
||||
async () => {},
|
||||
);
|
||||
const ensurePluginRegistryLoadedMock = vi.fn();
|
||||
const routeLogsToStderrMock = vi.fn();
|
||||
const prepareGatewayRunBootstrapMock = vi.fn(async () => true);
|
||||
|
||||
Reference in New Issue
Block a user