test: keep config fallback test on generic plugin channel

This commit is contained in:
Peter Steinberger
2026-04-22 19:20:08 +01:00
parent 03846d63ec
commit d48763caf9

View File

@@ -292,7 +292,7 @@ describe("config io write", () => {
await fs.mkdir(path.dirname(configPath), { recursive: true });
const original = {
gateway: { mode: "local" },
channels: { feishu: { enabled: true } },
channels: { "test-plugin-channel": { enabled: true } },
};
const originalRaw = `${JSON.stringify(original, null, 2)}\n`;
await fs.writeFile(configPath, originalRaw, "utf-8");
@@ -300,11 +300,7 @@ describe("config io write", () => {
throw new Error("manifest registry unavailable");
});
const io = createConfigIO({
env: { VITEST: "true" } as NodeJS.ProcessEnv,
homedir: () => home,
logger: silentLogger,
});
const io = createFastConfigIO(home);
const snapshot = await io.readConfigFileSnapshot();