조건부 통합 테스트 등록과 시계 fixture를 바로잡는다

This commit is contained in:
2026-09-23 16:21:52 +00:00
parent 7e1783d651
commit 08be92b6fa
6 changed files with 37 additions and 4 deletions
@@ -72,6 +72,14 @@ const state: TurnWorldState = {
currentMonth: 1,
tickSeconds: 600,
lastTurnTime: new Date('2026-07-31T09:00:00.000Z'),
clockBaseTime: new Date('2026-07-31T09:00:00.000Z'),
clockTick: 0,
lastTurnTick: 0,
clockMode: 'manual',
clockPhase: 'MANUAL',
clockWallAnchor: new Date('2026-07-31T09:00:00.000Z'),
clockRevision: 1,
deadlineGeneration: 1,
meta: {
killturn: 24,
lastTurnTime: '2026-07-31T09:00:00.000Z',
@@ -209,6 +217,14 @@ integration('adjustGeneralIcon PostgreSQL persistence', () => {
currentYear: state.currentYear,
currentMonth: state.currentMonth,
tickSeconds: state.tickSeconds,
clockBaseTime: state.clockBaseTime,
clockTick: BigInt(state.clockTick ?? 0),
lastTurnTick: BigInt(state.lastTurnTick ?? 0),
clockMode: state.clockMode,
clockPhase: state.clockPhase,
clockWallAnchor: state.clockWallAnchor,
clockRevision: BigInt(state.clockRevision ?? 1),
deadlineGeneration: BigInt(state.deadlineGeneration ?? 1),
config: JSON.parse(JSON.stringify(scenarioConfig)) as GamePrisma.InputJsonValue,
meta: state.meta as GamePrisma.InputJsonValue,
},
@@ -224,6 +224,14 @@ integration('monthly catalog boundary persistence', () => {
currentYear: 190,
currentMonth: 12,
tickSeconds: 600,
clockBaseTime: new Date('2026-07-25T01:50:00.000Z'),
clockTick: 0n,
lastTurnTick: 0n,
clockMode: 'manual',
clockPhase: 'MANUAL',
clockWallAnchor: new Date('2026-07-25T01:50:00.000Z'),
clockRevision: 1n,
deadlineGeneration: 1n,
config: scenarioConfig,
meta: {
hiddenSeed: 'monthly-boundary-core-catalog',