

























@@ -292,19 +292,15 @@ describe("config io write", () => {
292292await fs.mkdir(path.dirname(configPath), { recursive: true });
293293const original = {
294294gateway: { mode: "local" },
295-channels: { feishu: { enabled: true } },
295+channels: { "test-plugin-channel": { enabled: true } },
296296};
297297const originalRaw = `${JSON.stringify(original, null, 2)}\n`;
298298await fs.writeFile(configPath, originalRaw, "utf-8");
299299mockLoadPluginManifestRegistry.mockImplementationOnce(() => {
300300throw new Error("manifest registry unavailable");
301301});
302302303-const io = createConfigIO({
304-env: { VITEST: "true" } as NodeJS.ProcessEnv,
305-homedir: () => home,
306-logger: silentLogger,
307-});
303+const io = createFastConfigIO(home);
308304309305const snapshot = await io.readConfigFileSnapshot();
310306此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。