Skip to content

Commit 511f37c

Browse files
committed
Add diagnostic output
1 parent 802352f commit 511f37c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

site-validation/external-links.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ describe("site external links", () => {
5757
if (!deadExternalLinks.includes(description)) {
5858
deadExternalLinks.push(description)
5959

60+
console.log("Dead link!", description)
61+
6062
// Also write out to a file - the a+ flag will create it if it doesn't exist
6163
const content = JSON.stringify({ url: result.url, owningPage: result.parent }) + "\n"
64+
console.log("Writing", content)
65+
6266
await fs.writeFile(resultsFile, content, { flag: "a+" }, err => {
6367
console.warn("Error writing results:", err)
6468
})

0 commit comments

Comments
 (0)