refactor(test): dedupe setup wizard helpers

This commit is contained in:
Peter Steinberger
2026-03-22 00:15:51 +00:00
parent 85722d4cf2
commit 30ad059da8
27 changed files with 322 additions and 186 deletions

View File

@@ -1,6 +1,6 @@
import { describe, expect, it, vi } from "vitest";
import {
createPluginSetupWizardAdapter,
createPluginSetupWizardConfigure,
createTestWizardPrompter,
runSetupWizardConfigure,
type WizardPrompter,
@@ -8,7 +8,7 @@ import {
import type { OpenClawConfig } from "../runtime-api.js";
import { googlechatPlugin } from "./channel.js";
const googlechatConfigureAdapter = createPluginSetupWizardAdapter(googlechatPlugin);
const googlechatConfigure = createPluginSetupWizardConfigure(googlechatPlugin);
describe("googlechat setup wizard", () => {
it("configures service-account auth and webhook audience", async () => {
@@ -25,7 +25,7 @@ describe("googlechat setup wizard", () => {
});
const result = await runSetupWizardConfigure({
configure: googlechatConfigureAdapter.configure,
configure: googlechatConfigure,
cfg: {} as OpenClawConfig,
prompter,
options: {},