Skip to content

Commit

Permalink
Contract tests: skip Discord CDN links
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinlul committed Feb 25, 2024
1 parent d6c62b5 commit 0461544
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/contract/link.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ describe("Healthcheck for /link URLs", () => {
got = createGotClient();
});

test.each(Object.values(LinkCommand.links))("$name", async ({ result }) => {
// Skip Discord CDN links as they are no longer accessible outside Discord after the Authenticated Attachment URL change
test.each(
Object.values(LinkCommand.links).filter(({ result }) => !result.startsWith("https://cdn.discordapp.com"))
)("$name", async ({ result }) => {
for (const url of result.split("\n")) {
const response = await got(url);
expect(response.statusCode).toBe(200);
Expand Down

0 comments on commit 0461544

Please sign in to comment.