mirror of
https://github.com/moltbot/moltbot.git
synced 2026-04-26 16:06:16 +00:00
fix(test): prevent env leak causing models.json CI flake
This commit is contained in:
@@ -32,9 +32,7 @@ describe("models-config", () => {
|
||||
});
|
||||
globalThis.fetch = fetchMock as unknown as typeof fetch;
|
||||
|
||||
await ensureOpenClawModelsJson({ models: { providers: {} } });
|
||||
|
||||
const agentDir = path.join(process.env.HOME ?? "", ".openclaw", "agents", "main", "agent");
|
||||
const { agentDir } = await ensureOpenClawModelsJson({ models: { providers: {} } });
|
||||
expect(await readCopilotBaseUrl(agentDir)).toBe(DEFAULT_COPILOT_API_BASE_URL);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user