Update index.test.ts
This commit is contained in:
parent
9578856c8a
commit
1296928879
@ -62,6 +62,13 @@ describe("Scraping/Crawling Checkup (E2E)", () => {
|
|||||||
|
|
||||||
if (scrapedContent.statusCode !== 200) {
|
if (scrapedContent.statusCode !== 200) {
|
||||||
console.error(`Failed to scrape ${websiteData.website}`);
|
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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -132,6 +139,13 @@ describe("Scraping/Crawling Checkup (E2E)", () => {
|
|||||||
console.error(
|
console.error(
|
||||||
`Error processing ${websiteData.website}: ${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;
|
return null;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user