fix(ci): repair main type and lint failures

This commit is contained in:
Peter Steinberger
2026-04-26 12:09:26 +01:00
parent ecf71da888
commit 760dd98ddc
4 changed files with 20 additions and 20 deletions

View File

@@ -604,6 +604,9 @@ function buildInstalledPluginIndex(
if (record.enabledByDefault === true) {
indexRecord.enabledByDefault = true;
}
if (record.syntheticAuthRefs && record.syntheticAuthRefs.length > 0) {
indexRecord.syntheticAuthRefs = record.syntheticAuthRefs;
}
if (record.setupSource) {
indexRecord.setupSource = record.setupSource;
}

View File

@@ -1,12 +1,22 @@
import { beforeEach, describe, expect, it, vi } from "vitest";
type SyntheticAuthRegistrySnapshotResult = {
source: "persisted" | "provided" | "derived";
snapshot: {
plugins: Array<{ syntheticAuthRefs?: string[] }>;
};
diagnostics: [];
};
const getPluginRegistryState = vi.hoisted(() => vi.fn());
const pluginRegistryMocks = vi.hoisted(() => ({
loadPluginRegistrySnapshotWithMetadata: vi.fn((_params?: unknown) => ({
source: "persisted",
snapshot: { plugins: [] },
diagnostics: [],
})),
loadPluginRegistrySnapshotWithMetadata: vi.fn(
(_params?: unknown): SyntheticAuthRegistrySnapshotResult => ({
source: "persisted",
snapshot: { plugins: [] },
diagnostics: [],
}),
),
}));
vi.mock("./runtime-state.js", () => ({