refactor: trim test helper exports

This commit is contained in:
Peter Steinberger
2026-05-01 20:44:09 +01:00
parent 6e7b2fd736
commit ef45efb250
2 changed files with 5 additions and 5 deletions

View File

@@ -6,8 +6,8 @@ import { makeTempWorkspace } from "../../src/test-helpers/workspace.js";
import { captureEnv } from "../../src/test-utils/env.js";
import type { WizardPrompter } from "../../src/wizard/prompts.js";
export const noopAsync = async () => {};
export const noop = () => {};
const noopAsync = async () => {};
const noop = () => {};
export function createExitThrowingRuntime(): RuntimeEnv {
return {
@@ -52,7 +52,7 @@ export async function setupAuthTestEnv(
return { stateDir, agentDir };
}
export type AuthTestLifecycle = {
type AuthTestLifecycle = {
setStateDir: (stateDir: string) => void;
cleanup: () => Promise<void>;
};
@@ -82,7 +82,7 @@ export function requireOpenClawAgentDir(): string {
return agentDir;
}
export function authProfilePathForAgent(agentDir: string): string {
function authProfilePathForAgent(agentDir: string): string {
return path.join(agentDir, "auth-profiles.json");
}

View File

@@ -25,7 +25,7 @@ export type MockBaileysSocket = {
user?: { id?: string };
};
export type MockBaileysModule = {
type MockBaileysModule = {
BufferJSON: {
replacer: (key: string, value: unknown) => unknown;
reviver: (key: string, value: unknown) => unknown;