fix(test): mock @/lib/db in send-currency tests for pre-push
CI / check (push) Successful in 24s
CI / release (push) Skipped
CI / deploy (push) Successful in 1m2s

Co-authored-by: Cursor <[email protected]>
This commit is contained in:
SimoandCursor committed 2026-08-01 13:30:16 +02:00
1 parent 65b2fbee6a
commit 53b350057d
1 file changed
+6
+6
View File
@@ -1,6 +1,12 @@
import { describe, expect, it, vi } from "vitest";
import type { CurrencyDb } from "./send-currency";
vi.mock("@/lib/db", () => ({
db: {},
User: {},
UsersCurrency: {},
}));
vi.mock("@/lib/services/rcon", () => ({}));
import { sendCurrency } from "./send-currency";