mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 09:00:42 +00:00
test: keep config fallback test on generic plugin channel
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user