Skip to content

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

Merge branch 'main' into feat/sdk-without-ws

Nicolas0c1c4f2eded2
diff --cc apps/js-sdk/firecrawl/src/__tests__/v1/e2e_withAuth/index.test.ts
index b883550cf,e5c042096..4f3a9cb23
--- a/apps/js-sdk/firecrawl/src/__tests__/v1/e2e_withAuth/index.test.ts
+++ b/apps/js-sdk/firecrawl/src/__tests__/v1/e2e_withAuth/index.test.ts
@@@ -328,11 -346,16 +346,16 @@@ describe('FirecrawlApp E2E Tests', () =
expect(statusResponse.data[0].metadata).not.toHaveProperty("error");
}
}
- }, 60000); // 60 seconds timeout
+ }, 120000); // 120 seconds timeout
test.concurrent('should throw error for invalid API key on map', async () => {
- const invalidApp = new FirecrawlApp({ apiKey: "invalid_api_key", apiUrl: API_URL });
- await expect(invalidApp.mapUrl('https://roastmywebsite.ai')).rejects.toThrow("Request failed with status code 401");
+ if (API_URL.includes('api.firecrawl.dev')) {
+ const invalidApp = new FirecrawlApp({ apiKey: "invalid_api_key", apiUrl: API_URL });
+ await expect(invalidApp.mapUrl('https://roastmywebsite.ai')).rejects.toThrow("Request failed with status code 404");
+ } else {
+ const invalidApp = new FirecrawlApp({ apiKey: "invalid_api_key", apiUrl: API_URL });
+ await expect(invalidApp.mapUrl('https://roastmywebsite.ai')).resolves.not.toThrow();
+ }
});
test.concurrent('should throw error for blocklisted URL on map', async () => {