mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 00:53:28 +00:00
chore: Fix types in tests 41/N.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import fs from "node:fs/promises";
|
||||
import path from "node:path";
|
||||
import { afterAll, beforeAll, describe, expect, it, vi } from "vitest";
|
||||
import type { GatewayAuthConfig } from "../config/config.js";
|
||||
import { makeTempWorkspace } from "../test-helpers/workspace.js";
|
||||
import { getFreePortBlockWithPermissionFallback } from "../test-utils/ports.js";
|
||||
import {
|
||||
@@ -61,7 +62,7 @@ async function getFreeGatewayPort(): Promise<number> {
|
||||
const runtime = createThrowingRuntime();
|
||||
|
||||
async function expectGatewayTokenAuth(params: {
|
||||
authConfig: unknown;
|
||||
authConfig: GatewayAuthConfig | null | undefined;
|
||||
token: string;
|
||||
env: NodeJS.ProcessEnv;
|
||||
}) {
|
||||
@@ -161,7 +162,7 @@ describe("onboard (non-interactive): gateway and remote auth", () => {
|
||||
const { resolveConfigPath } = await import("../config/paths.js");
|
||||
const configPath = resolveConfigPath(process.env, stateDir);
|
||||
const cfg = await readJsonFile<{
|
||||
gateway?: { auth?: { mode?: string; token?: string } };
|
||||
gateway?: { auth?: GatewayAuthConfig };
|
||||
agents?: { defaults?: { workspace?: string } };
|
||||
}>(configPath);
|
||||
|
||||
@@ -245,7 +246,7 @@ describe("onboard (non-interactive): gateway and remote auth", () => {
|
||||
gateway?: {
|
||||
bind?: string;
|
||||
port?: number;
|
||||
auth?: { mode?: string; token?: string };
|
||||
auth?: GatewayAuthConfig;
|
||||
};
|
||||
}>(configPath);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user