chore: Fix types in tests 41/N.

This commit is contained in:
cpojer
2026-02-17 15:48:16 +09:00
parent 3dc8d5656d
commit 6264c5e842
17 changed files with 81 additions and 43 deletions

View File

@@ -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);