chore(deps): upgrade to typescript 7 bridge and clean up pnpm v11 workspace configs
CI / check (push) Failing after 58s
Deploy / release (push) Skipped
Deploy / deploy (push) Failing after 11s

This commit is contained in:
openhands committed 2026-07-27 23:14:00 +02:00
1 parent 65f118c918
commit dacc4cadfd
12 files changed
+1138 -725

No files matched your search

+29 -7
View File
@@ -9,10 +9,23 @@ const mockDb = {} as CurrencyDb;
describe("sendCurrency", () => {
it("returns false for non-positive amount", async () => {
expect(await sendCurrency({ rcon: {} as never, db: mockDb }, 1, "credits", 0)).toBe(false);
expect(await sendCurrency({ rcon: {} as never, db: mockDb }, 1, "credits", -5)).toBe(false);
expect(await sendCurrency({ rcon: {} as never, db: mockDb }, 1, "credits", null)).toBe(false);
expect(await sendCurrency({ rcon: {} as never, db: mockDb }, 1, "credits", undefined)).toBe(false);
expect(
await sendCurrency({ rcon: {} as never, db: mockDb }, 1, "credits", 0),
).toBe(false);
expect(
await sendCurrency({ rcon: {} as never, db: mockDb }, 1, "credits", -5),
).toBe(false);
expect(
await sendCurrency({ rcon: {} as never, db: mockDb }, 1, "credits", null),
).toBe(false);
expect(
await sendCurrency(
{ rcon: {} as never, db: mockDb },
1,
"credits",
undefined,
),
).toBe(false);
});
it("delivers credits via RCON", async () => {
@@ -23,7 +36,10 @@ describe("sendCurrency", () => {
givePointsGotw: vi.fn(),
};
const result = await sendCurrency(
{ rcon, db: { user: { update: vi.fn() }, usersCurrency: { upsert: vi.fn() } } },
{
rcon,
db: { user: { update: vi.fn() }, usersCurrency: { upsert: vi.fn() } },
},
1,
"credits",
100,
@@ -43,7 +59,10 @@ describe("sendCurrency", () => {
const result = await sendCurrency(
{
rcon,
db: { user: { update: userUpdate }, usersCurrency: { upsert: vi.fn() } },
db: {
user: { update: userUpdate },
usersCurrency: { upsert: vi.fn() },
},
},
1,
"credits",
@@ -64,7 +83,10 @@ describe("sendCurrency", () => {
givePointsGotw: vi.fn(),
};
const result = await sendCurrency(
{ rcon, db: { user: { update: vi.fn() }, usersCurrency: { upsert: vi.fn() } } },
{
rcon,
db: { user: { update: vi.fn() }, usersCurrency: { upsert: vi.fn() } },
},
1,
"duckets",
50,