test(config): clear install record cache in validation fixture · openclaw/openclaw@9ff071f
steipete
·
2026-05-28
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -2,6 +2,7 @@ import fs from "node:fs/promises";
|
2 | 2 | import os from "node:os"; |
3 | 3 | import path from "node:path"; |
4 | 4 | import { afterAll, beforeAll, describe, expect, it, vi } from "vitest"; |
| 5 | +import { clearLoadInstalledPluginIndexInstallRecordsCache } from "../plugins/installed-plugin-index-records.js"; |
5 | 6 | import { validateConfigObjectWithPlugins } from "./validation.js"; |
6 | 7 | |
7 | 8 | vi.unmock("../version.js"); |
@@ -851,6 +852,7 @@ describe("config plugin validation", () => {
|
851 | 852 | ), |
852 | 853 | "utf-8", |
853 | 854 | ); |
| 855 | +clearLoadInstalledPluginIndexInstallRecordsCache(); |
854 | 856 | try { |
855 | 857 | const res = validateInSuite({ |
856 | 858 | agents: { list: [{ id: "openclaw" }] }, |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。