Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

Merge branch 'main' into feat/maxDepthRelative

Eric Ciarla2c5f5c0ea29a
diff --cc apps/api/src/__tests__/e2e_withAuth/index.test.ts
index a225a8032,9149c0122..adce0220e
--- a/apps/api/src/__tests__/e2e_withAuth/index.test.ts
+++ b/apps/api/src/__tests__/e2e_withAuth/index.test.ts
@@@ -658,7 -649,9 +819,11 @@@ describe("E2E Tests for API Routes", (
expect(completedResponse.body.data[0].content).toContain("_Roast_");
expect(completedResponse.body.data[0].markdown).toContain("_Roast_");
expect(completedResponse.body.data[0].html).toContain("<h1");
++
+ expect(completedResponse.body.data[0].metadata.pageStatusCode).toBe(200);
+ expect(completedResponse.body.data[0].metadata.pageError).toBeUndefined();
- }, 60000);
+ }, 180000);
++
});
describe("POST /v0/crawlWebsitePreview", () => {
@@@ -835,8 -830,11 +1002,13 @@@
})
])
);
++
+ expect(completedResponse.body.data[0]).toHaveProperty("metadata");
+ expect(completedResponse.body.data[0].metadata.pageStatusCode).toBe(200);
+ expect(completedResponse.body.data[0].metadata.pageError).toBeUndefined();
- }, 120000); // 120 seconds
+ }, 180000); // 120 seconds
+
+
it.concurrent("should return a successful response with max depth option for a valid crawl job", async () => {
const crawlResponse = await request(TEST_URL)
.post("/v0/crawl")