mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-02 21:05:16 +00:00
chore(lint): remove underscore-dangle allow list (#83542)
* chore(lint): reduce underscore-dangle exceptions * chore(lint): reduce more underscore exceptions * chore(lint): remove underscore-dangle allow list * fix(lint): repair underscore cleanup regressions * test(lint): track version define suppression
This commit is contained in:
committed by
GitHub
parent
5613f5fd05
commit
4f4d108639
@@ -1,6 +1,6 @@
|
||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { formatCliCommand } from "../command-format.js";
|
||||
import { ensureConfigReady, __test__ } from "./config-guard.js";
|
||||
import { ensureConfigReady, testApi } from "./config-guard.js";
|
||||
|
||||
const loadAndMaybeMigrateDoctorConfigMock = vi.hoisted(() => vi.fn());
|
||||
const readConfigFileSnapshotMock = vi.hoisted(() => vi.fn());
|
||||
@@ -52,7 +52,7 @@ async function withCapturedStdout(run: () => Promise<void>): Promise<string> {
|
||||
}
|
||||
|
||||
describe("ensureConfigReady", () => {
|
||||
const resetConfigGuardStateForTests = __test__.resetConfigGuardStateForTests;
|
||||
const resetConfigGuardStateForTests = testApi.resetConfigGuardStateForTests;
|
||||
|
||||
async function runEnsureConfigReady(commandPath: string[], suppressDoctorStdout = false) {
|
||||
const runtime = makeRuntime();
|
||||
|
||||
@@ -137,6 +137,7 @@ export async function ensureConfigReady(params: {
|
||||
}
|
||||
}
|
||||
|
||||
export const __test__ = {
|
||||
export const testApi = {
|
||||
resetConfigGuardStateForTests,
|
||||
};
|
||||
export { testApi as __test__ };
|
||||
|
||||
@@ -22,7 +22,7 @@ const { ensurePluginRegistryLoaded } = await import("../../plugin-registry.js");
|
||||
|
||||
const hasHooksMock = vi.fn((_hookName: string) => false);
|
||||
const runGatewayStopMock = vi.fn(
|
||||
async (_event: { reason?: string }, _ctx: Record<string, unknown>) => {},
|
||||
async (eventValue: { reason?: string }, _ctx: Record<string, unknown>) => {},
|
||||
);
|
||||
const runGlobalGatewayStopSafelyMock = vi.fn(
|
||||
async (params: {
|
||||
|
||||
@@ -2,7 +2,7 @@ import { beforeEach, describe, expect, it, vi } from "vitest";
|
||||
import { renderRootHelpText } from "./root-help.js";
|
||||
|
||||
const getPluginCliCommandDescriptorsMock = vi.fn(
|
||||
async (_config?: unknown, _env?: unknown, _loaderOptions?: unknown) => [
|
||||
async (configForTest?: unknown, _env?: unknown, _loaderOptions?: unknown) => [
|
||||
{
|
||||
name: "matrix",
|
||||
description: "Matrix channel utilities",
|
||||
|
||||
Reference in New Issue
Block a user