test: tighten firecrawl config assertion

This commit is contained in:
Shakker
2026-05-08 19:05:03 +01:00
parent b71312d7d5
commit f2c917d104

View File

@@ -82,7 +82,12 @@ describe("firecrawl tools", () => {
expect(provider.id).toBe("firecrawl");
expect(provider.credentialPath).toBe("plugins.entries.firecrawl.config.webSearch.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 plugin entry");
}
expect(pluginEntry.enabled).toBe(true);
});
it("parses scrape payloads into wrapped external-content results", () => {