fix(config): cap generated schema export types

This commit is contained in:
Peter Steinberger
2026-04-05 07:57:54 +01:00
parent 20803dac14
commit 68851f2e97
5 changed files with 16 additions and 21 deletions

View File

@@ -1,7 +1,16 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
type MockManifestRegistry = {
plugins: Array<{
id: string;
origin: string;
providerAuthEnvVars?: Record<string, string[]>;
}>;
diagnostics: unknown[];
};
const loadPluginManifestRegistry = vi.hoisted(() =>
vi.fn(() => ({ plugins: [], diagnostics: [] })),
vi.fn<() => MockManifestRegistry>(() => ({ plugins: [], diagnostics: [] })),
);
vi.mock("../plugins/manifest-registry.js", () => ({