mirror of
https://github.com/openclaw/openclaw.git
synced 2026-03-20 22:40:58 +00:00
test(ci): trim command secret gateway harness churn
This commit is contained in:
@@ -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";
|
||||
|
||||
const callGateway = vi.fn();
|
||||
@@ -9,12 +9,14 @@ vi.mock("../gateway/call.js", () => ({
|
||||
|
||||
let resolveCommandSecretRefsViaGateway: typeof import("./command-secret-gateway.js").resolveCommandSecretRefsViaGateway;
|
||||
|
||||
beforeEach(async () => {
|
||||
vi.resetModules();
|
||||
callGateway.mockReset();
|
||||
beforeAll(async () => {
|
||||
({ resolveCommandSecretRefsViaGateway } = await import("./command-secret-gateway.js"));
|
||||
});
|
||||
|
||||
beforeEach(() => {
|
||||
callGateway.mockReset();
|
||||
});
|
||||
|
||||
describe("resolveCommandSecretRefsViaGateway", () => {
|
||||
function makeTalkApiKeySecretRefConfig(envKey: string): OpenClawConfig {
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user