Update index.test.ts
This commit is contained in:
parent
6ced8e73a7
commit
3bfef646e0
@ -61,13 +61,13 @@ describe("Scraping/Crawling Checkup (E2E)", () => {
|
|||||||
.send({ url: websiteData.website, pageOptions: { onlyMainContent: true } });
|
.send({ url: websiteData.website, pageOptions: { onlyMainContent: true } });
|
||||||
|
|
||||||
if (scrapedContent.statusCode !== 200) {
|
if (scrapedContent.statusCode !== 200) {
|
||||||
console.error(`Failed to scrape ${websiteData.website}`);
|
console.error(`Failed to scrape ${websiteData.website} ${scrapedContent.statusCode}`);
|
||||||
errorLog.push({
|
errorLog.push({
|
||||||
website: websiteData.website,
|
website: websiteData.website,
|
||||||
prompt: websiteData.prompt,
|
prompt: websiteData.prompt,
|
||||||
expected_output: websiteData.expected_output,
|
expected_output: websiteData.expected_output,
|
||||||
actual_output: "",
|
actual_output: "",
|
||||||
error: "Failed to prompt... model error."
|
error: `Failed to scrape website. ${scrapedContent.statusCode} ${scrapedContent.body.error}`
|
||||||
});
|
});
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -157,7 +157,7 @@ describe("Scraping/Crawling Checkup (E2E)", () => {
|
|||||||
prompt: websiteData.prompt,
|
prompt: websiteData.prompt,
|
||||||
expected_output: websiteData.expected_output,
|
expected_output: websiteData.expected_output,
|
||||||
actual_output: "",
|
actual_output: "",
|
||||||
error: "Failed to prompt... model error."
|
error: `Error processing ${websiteData.website}: ${error}`
|
||||||
});
|
});
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user