chore: skip npm and patreon urls in tests
Security Scan and Upload / Security & DefectDojo Upload (pull_request) Successful in 57s
Node.js CI / CI (pull_request) Failing after 42s

Both block automated HEAD requests with 403 responses.
This commit is contained in:
2026-04-28 14:12:09 -07:00
parent d15ebc14a0
commit 719de29d77
+6 -4
View File
@@ -114,9 +114,10 @@ describe("project data", () => {
).resolves.toBeTruthy();
}
// We explicitly skip the VSCode url because it blocks our request.
// We explicitly skip the VSCode and npm urls because they block automated requests.
if (project.url
&& !project.url.startsWith("https://marketplace.visualstudio.com")) {
&& !project.url.startsWith("https://marketplace.visualstudio.com")
&& !project.url.startsWith("https://www.npmjs.com")) {
expect(
typeof project.url,
`Project url should be a string for project: ${
@@ -460,10 +461,11 @@ describe("donate data", () => {
}`,
).toBe("string");
// We explicitly skip Ko-Fi, Throne, and Twitch because they block all automated requests.
// We explicitly skip Ko-Fi, Throne, Twitch, and Patreon because they block all automated requests.
if (!method.url.startsWith("https://ko-fi.com")
&& !method.url.startsWith("https://throne.com")
&& !method.url.startsWith("https://twitch.tv")) {
&& !method.url.startsWith("https://twitch.tv")
&& !method.url.startsWith("https://patreon.com")) {
await expect(
checkUrl(method.url),
`Donation method url should be reachable for ${