mirror of
https://github.com/mendableai/firecrawl.git
synced 2025-06-27 00:41:33 +00:00
fix(api): pdf bug + testing bugs
This commit is contained in:
parent
fe9057559b
commit
9053aad53b
@ -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,
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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),
|
||||
},
|
||||
}
|
||||
: {}),
|
||||
|
Loading…
x
Reference in New Issue
Block a user