From 3bfef646e00429938623c70d70a5eb3c93f39d21 Mon Sep 17 00:00:00 2001 From: Nicolas Date: Wed, 8 May 2024 13:23:53 -0700 Subject: [PATCH] Update index.test.ts --- apps/test-suite/index.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/test-suite/index.test.ts b/apps/test-suite/index.test.ts index 1de2bf5..853b781 100644 --- a/apps/test-suite/index.test.ts +++ b/apps/test-suite/index.test.ts @@ -61,13 +61,13 @@ describe("Scraping/Crawling Checkup (E2E)", () => { .send({ url: websiteData.website, pageOptions: { onlyMainContent: true } }); if (scrapedContent.statusCode !== 200) { - console.error(`Failed to scrape ${websiteData.website}`); + console.error(`Failed to scrape ${websiteData.website} ${scrapedContent.statusCode}`); errorLog.push({ website: websiteData.website, prompt: websiteData.prompt, expected_output: websiteData.expected_output, actual_output: "", - error: "Failed to prompt... model error." + error: `Failed to scrape website. ${scrapedContent.statusCode} ${scrapedContent.body.error}` }); return null; } @@ -157,7 +157,7 @@ describe("Scraping/Crawling Checkup (E2E)", () => { prompt: websiteData.prompt, expected_output: websiteData.expected_output, actual_output: "", - error: "Failed to prompt... model error." + error: `Error processing ${websiteData.website}: ${error}` }); return null; }