0

Update index.test.ts

This commit is contained in:
Nicolas 2024-05-08 13:00:20 -07:00
parent 9578856c8a
commit 1296928879

View File

@ -62,6 +62,13 @@ describe("Scraping/Crawling Checkup (E2E)", () => {
if (scrapedContent.statusCode !== 200) {
console.error(`Failed to scrape ${websiteData.website}`);
errorLog.push({
website: websiteData.website,
prompt: websiteData.prompt,
expected_output: websiteData.expected_output,
actual_output: "",
error: "Failed to prompt... model error."
});
return null;
}
@ -132,6 +139,13 @@ describe("Scraping/Crawling Checkup (E2E)", () => {
console.error(
`Error processing ${websiteData.website}: ${error}`
);
errorLog.push({
website: websiteData.website,
prompt: websiteData.prompt,
expected_output: websiteData.expected_output,
actual_output: "",
error: "Failed to prompt... model error."
});
return null;
}
})