test: tighten firecrawl fetch config assertion

This commit is contained in:
Shakker
2026-05-08 19:22:12 +01:00
parent 67e40485cd
commit a1ea0b65de

View File

@@ -353,7 +353,12 @@ describe("firecrawl tools", () => {
expect(provider.id).toBe("firecrawl");
expect(provider.credentialPath).toBe("plugins.entries.firecrawl.config.webFetch.apiKey");
expect(applied.plugins?.entries?.firecrawl?.enabled).toBe(true);
const pluginEntry = applied.plugins?.entries?.firecrawl;
expect(pluginEntry).toBeDefined();
if (!pluginEntry) {
throw new Error("expected Firecrawl fetch plugin entry");
}
expect(pluginEntry.enabled).toBe(true);
});
it("passes proxy and storeInCache through the fetch provider tool", async () => {