Skip to content

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

temporarily disable some flaky tests

Gergő Móricza461f72d1719
diff --git a/apps/api/src/__tests__/snips/crawl.test.ts b/apps/api/src/__tests__/snips/crawl.test.ts
index 599e34cfc..2aed9e957 100644
--- a/apps/api/src/__tests__/snips/crawl.test.ts
+++ b/apps/api/src/__tests__/snips/crawl.test.ts
@@ -37,37 +37,39 @@ describe("Crawl tests", () => {
}
}, 120000);
- it.concurrent("discovers URLs properly when origin is not included", async () => {
- const res = await crawl({
- url: "https://firecrawl.dev",
- includePaths: ["^/blog"],
- ignoreSitemap: true,
- limit: 10,
- });
+ // TEMP: Flaky
+ // it.concurrent("discovers URLs properly when origin is not included", async () => {
+ // const res = await crawl({
+ // url: "https://firecrawl.dev",
+ // includePaths: ["^/blog"],
+ // ignoreSitemap: true,
+ // limit: 10,
+ // });
- expect(res.success).toBe(true);
- if (res.success) {
- expect(res.data.length).toBeGreaterThan(1);
- for (const page of res.data) {
- expect(page.metadata.url ?? page.metadata.sourceURL).toMatch(/^https:\/\/(www\.)?firecrawl\.dev\/blog/);
- }
- }
- }, 120000);
+ // expect(res.success).toBe(true);
+ // if (res.success) {
+ // expect(res.data.length).toBeGreaterThan(1);
+ // for (const page of res.data) {
+ // expect(page.metadata.url ?? page.metadata.sourceURL).toMatch(/^https:\/\/(www\.)?firecrawl\.dev\/blog/);
+ // }
+ // }
+ // }, 120000);
- it.concurrent("discovers URLs properly when maxDiscoveryDepth is provided", async () => {
- const res = await crawl({
- url: "https://firecrawl.dev",
- ignoreSitemap: true,
- maxDiscoveryDepth: 1,
- limit: 10,
- });
+ // TEMP: Flaky
+ // it.concurrent("discovers URLs properly when maxDiscoveryDepth is provided", async () => {
+ // const res = await crawl({
+ // url: "https://firecrawl.dev",
+ // ignoreSitemap: true,
+ // maxDiscoveryDepth: 1,
+ // limit: 10,
+ // });
- expect(res.success).toBe(true);
- if (res.success) {
- expect(res.data.length).toBeGreaterThan(1);
- for (const page of res.data) {
- expect(page.metadata.url ?? page.metadata.sourceURL).not.toMatch(/^https:\/\/(www\.)?firecrawl\.dev\/blog\/.+$/);
- }
- }
- }, 120000);
+ // expect(res.success).toBe(true);
+ // if (res.success) {
+ // expect(res.data.length).toBeGreaterThan(1);
+ // for (const page of res.data) {
+ // expect(page.metadata.url ?? page.metadata.sourceURL).not.toMatch(/^https:\/\/(www\.)?firecrawl\.dev\/blog\/.+$/);
+ // }
+ // }
+ // }, 120000);
});