
















@@ -225,16 +225,20 @@ describe("loadPluginLookUpTable", () => {
225225expect(table.manifestRegistry).toBe(manifestRegistry);
226226expect(table.diagnostics).toEqual([indexDiagnostic, manifestDiagnostic]);
227227expect(table.metrics).toMatchObject({
228-registrySnapshotMs: expect.any(Number),
229-manifestRegistryMs: expect.any(Number),
230-startupPlanMs: expect.any(Number),
231-ownerMapsMs: expect.any(Number),
232-totalMs: expect.any(Number),
233228indexPluginCount: 2,
234229manifestPluginCount: 2,
235230startupPluginCount: 1,
236231deferredChannelPluginCount: 0,
237232});
233+for (const metricName of [
234+"registrySnapshotMs",
235+"manifestRegistryMs",
236+"startupPlanMs",
237+"ownerMapsMs",
238+"totalMs",
239+] as const) {
240+expect(table.metrics[metricName]).toBeGreaterThanOrEqual(0);
241+}
238242expect(table.byPluginId.get("telegram")?.id).toBe("telegram");
239243expect(table.normalizePluginId("openai-codex")).toBe("openai");
240244expect(table.owners.channels.get("telegram")).toEqual(["telegram"]);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。