fix(api): pdf bug + testing bugs

This commit is contained in:
Gergő Móricz 2025-06-23 19:29:55 +02:00
parent fe9057559b
commit 9053aad53b
3 changed files with 4 additions and 4 deletions

View File

@ -41,7 +41,7 @@ describe("Crawl tests", () => {
}
}, 120000);
it.only("delay parameter works", async () => {
it.concurrent("delay parameter works", async () => {
await crawl({
url: "https://firecrawl.dev",
limit: 3,

View File

@ -121,7 +121,7 @@ describe("Scrape tests", () => {
// }, 30000);
// });
describe.only("Index", () => {
describe("Index", () => {
it.concurrent("caches properly", async () => {
const id = crypto.randomUUID();
const url = "https://firecrawl.dev/?testId=" + id;
@ -369,7 +369,7 @@ describe("Scrape tests", () => {
expect(response2.metadata.cacheState).toBe("miss");
}, scrapeTimeout * 2 + 1 * indexCooldown);
it.only("respects location", async () => {
it.concurrent("respects location", async () => {
const id = crypto.randomUUID();
const url = "https://firecrawl.dev/?testId=" + id;

View File

@ -282,7 +282,7 @@ export async function scrapeURLWithFireEngineChromeCDP(
screenshots: response.screenshots ?? [],
scrapes: response.actionContent ?? [],
javascriptReturns: (response.actionResults ?? []).filter(x => x.type === "executeJavascript").map(x => JSON.parse((x.result as any as { return: string }).return)),
pdfs: (response.actionResults ?? []).filter(x => x.type === "pdf").map(x => JSON.parse((x.result as any as { link: string }).link)),
pdfs: (response.actionResults ?? []).filter(x => x.type === "pdf").map(x => x.result.link),
},
}
: {}),