refactor: replace qstash with Google Cloud Tasks

This commit is contained in:
2024-10-05 14:06:57 -04:00
parent 85712ff0cf
commit 44ffa703b9
21 changed files with 354 additions and 207 deletions

View File

@@ -1,23 +0,0 @@
import { SignatureError } from "@upstash/qstash";
import { mock } from "bun:test";
class MockQstashMessages {
delete = mock();
}
class MockQstashClient {
batchJSON = mock();
publishJSON = mock().mockResolvedValue({ messageId: "123" });
messages = new MockQstashMessages();
}
class MockQstashReceiver {
verify = mock();
}
mock.module("@upstash/qstash", () => ({
Client: MockQstashClient,
Receiver: MockQstashReceiver,
SignatureError,
}));