fix(test): mock @/lib/db in send-currency tests for pre-push
Co-authored-by: Cursor <[email protected]>
This commit is contained in:
1 parent
65b2fbee6a
commit
53b350057d
1 file changed
+6
@@ -1,6 +1,12 @@
|
|||||||
import { describe, expect, it, vi } from "vitest";
|
import { describe, expect, it, vi } from "vitest";
|
||||||
import type { CurrencyDb } from "./send-currency";
|
import type { CurrencyDb } from "./send-currency";
|
||||||
|
|
||||||
|
vi.mock("@/lib/db", () => ({
|
||||||
|
db: {},
|
||||||
|
User: {},
|
||||||
|
UsersCurrency: {},
|
||||||
|
}));
|
||||||
|
|
||||||
vi.mock("@/lib/services/rcon", () => ({}));
|
vi.mock("@/lib/services/rcon", () => ({}));
|
||||||
|
|
||||||
import { sendCurrency } from "./send-currency";
|
import { sendCurrency } from "./send-currency";
|
||||||
|
|||||||
Reference in new issue
Block a user