Amélioration de la détection de liens externes morts
This commit is contained in:
13
tools/tests/puppeteer.test.js
Normal file
13
tools/tests/puppeteer.test.js
Normal file
@@ -0,0 +1,13 @@
|
||||
const { scrapePage } = require("../lib/puppeteer");
|
||||
const path = require("path");
|
||||
|
||||
(async () => {
|
||||
const testUrl = "https://richard-dern.fr";
|
||||
const screenshotPath = path.join(__dirname, "test_screenshot.png");
|
||||
|
||||
console.log(`🔍 Testing Puppeteer module on: ${testUrl}`);
|
||||
const metadata = await scrapePage(testUrl, screenshotPath);
|
||||
|
||||
console.log("📄 Page metadata:");
|
||||
console.log(metadata);
|
||||
})();
|
||||
Reference in New Issue
Block a user