커맨드의 arg 타입에 zod 강제.

This commit is contained in:
2026-01-15 16:34:18 +00:00
parent 39e7eddcf7
commit a7b22f0502
25 changed files with 288 additions and 390 deletions
@@ -290,7 +290,7 @@ describe('Nation Missing Actions', () => {
setupDiplomacy(view, nation.id, destNation.id, 2);
const definition = new CounterStrategyAction();
const args = { destNationId: destNation.id, commandType: 'che_허보' };
const args = { destNationId: destNation.id, commandType: 'che_허보' } as const;
const ctx: ConstraintContext = {
actorId: general.id,
nationId: nation.id,
@@ -327,7 +327,7 @@ describe('Nation Missing Actions', () => {
addLog: () => {},
} as any,
{ now: new Date(), schedule },
{ destNationId: destNation.id, commandType: 'che_허보' }
{ destNationId: destNation.id, commandType: 'che_허보' } as const
);
expect(resolution.general.experience).toBeGreaterThan(100);