test: align manifest hot path fixtures

This commit is contained in:
Shakker
2026-05-01 23:20:52 +01:00
parent 6b6f140c42
commit d94889909c
11 changed files with 67 additions and 32 deletions

View File

@@ -32,7 +32,9 @@ const mocks = vi.hoisted(() => ({
() => createEmptyMockManifestRegistry(),
),
loadBundledCapabilityRuntimeRegistry: vi.fn(),
loadPluginRegistrySnapshot: vi.fn(() => ({ plugins: [] })),
loadPluginRegistrySnapshot: vi.fn<() => { plugins: Array<Record<string, unknown>> }>(() => ({
plugins: [],
})),
withBundledPluginAllowlistCompat: vi.fn(
({ config, pluginIds }: { config?: OpenClawConfig; pluginIds: string[] }) =>
({