0.4.0: battlepass levelNumber fix, UGC removed, regenerated API types, CI publish on tags
CI / check (push) Successful in 59s
CI / publish (push) Failing after 23s

This commit is contained in:
edmand46
2026-08-19 17:48:55 +03:00
parent 25f66be16a
commit 322a2c0706
9 changed files with 42 additions and 90 deletions
+1 -1
View File
@@ -185,7 +185,7 @@ describe('ScenarioService', () => {
client.effects.onBattlePassLevel(onLevel);
const plan = makePlan({
nodes: [makeNode('start', 'battlepass_level', { level: 3 })],
nodes: [makeNode('start', 'battlepass_level', { levelNumber: 3 })],
});
vi.stubGlobal('fetch', vi.fn().mockResolvedValue(
new Response(JSON.stringify({ plans: [plan] }), { status: 200 }),
+2 -2
View File
@@ -11,7 +11,7 @@ interface AdminWalletDetails {
balance: number;
}
interface AdminInventoryItem {
itemId: string;
slug: string;
amount: number;
}
interface AdminPlayerDetails {
@@ -70,7 +70,7 @@ describe('e2e-prod: purchase (wallet/inventory/limits)', () => {
const details = await api.get<AdminPlayerDetails>(
`/game/v1/projects/${artifact.projectId}/players/${playerId}`,
);
const inv = details.inventory?.find((i) => i.itemId === artifact.item.id);
const inv = details.inventory?.find((i) => i.slug === artifact.item.id);
expect(Number(inv?.amount)).toBe(artifact.store.paidGrantAmount);
// 4. Idempotency: the same key twice charges once.