test(ci): trim command secret gateway harness churn
This commit is contained in:
parent
feb9a3b5b2
commit
6b9ebffebb
@ -1,4 +1,4 @@
|
|||||||
import { beforeEach, describe, expect, it, vi } from "vitest";
|
import { beforeAll, beforeEach, describe, expect, it, vi } from "vitest";
|
||||||
import type { OpenClawConfig } from "../config/config.js";
|
import type { OpenClawConfig } from "../config/config.js";
|
||||||
|
|
||||||
const callGateway = vi.fn();
|
const callGateway = vi.fn();
|
||||||
@ -9,12 +9,14 @@ vi.mock("../gateway/call.js", () => ({
|
|||||||
|
|
||||||
let resolveCommandSecretRefsViaGateway: typeof import("./command-secret-gateway.js").resolveCommandSecretRefsViaGateway;
|
let resolveCommandSecretRefsViaGateway: typeof import("./command-secret-gateway.js").resolveCommandSecretRefsViaGateway;
|
||||||
|
|
||||||
beforeEach(async () => {
|
beforeAll(async () => {
|
||||||
vi.resetModules();
|
|
||||||
callGateway.mockReset();
|
|
||||||
({ resolveCommandSecretRefsViaGateway } = await import("./command-secret-gateway.js"));
|
({ resolveCommandSecretRefsViaGateway } = await import("./command-secret-gateway.js"));
|
||||||
});
|
});
|
||||||
|
|
||||||
|
beforeEach(() => {
|
||||||
|
callGateway.mockReset();
|
||||||
|
});
|
||||||
|
|
||||||
describe("resolveCommandSecretRefsViaGateway", () => {
|
describe("resolveCommandSecretRefsViaGateway", () => {
|
||||||
function makeTalkApiKeySecretRefConfig(envKey: string): OpenClawConfig {
|
function makeTalkApiKeySecretRefConfig(envKey: string): OpenClawConfig {
|
||||||
return {
|
return {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user