feat: retry AniList "update watch status" request if it fails

This commit is contained in:
2024-09-06 17:54:16 -05:00
parent 7f950d5dc3
commit 3ded897b77
4 changed files with 47 additions and 2 deletions

18
src/mocks/qstash.ts Normal file
View File

@@ -0,0 +1,18 @@
import { SignatureError } from "@upstash/qstash";
import { mock } from "bun:test";
class MockQstashClient {
batchJSON = mock();
publishJSON = mock();
}
class MockQstashReceiver {
verify = mock();
}
mock.module("@upstash/qstash", () => ({
Client: MockQstashClient,
Receiver: MockQstashReceiver,
SignatureError,
}));