From 719de29d770b3af4995dcf91fe53861c0c8a998f Mon Sep 17 00:00:00 2001 From: Hikari Date: Tue, 28 Apr 2026 14:12:09 -0700 Subject: [PATCH] chore: skip npm and patreon urls in tests Both block automated HEAD requests with 403 responses. --- test/yaml.spec.ts | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/test/yaml.spec.ts b/test/yaml.spec.ts index 7eef248..91441e3 100644 --- a/test/yaml.spec.ts +++ b/test/yaml.spec.ts @@ -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 ${