fix(test): update EventState inline literal to use createEventState() spread

EventState interface gained new required fields; the inline literal in the
session.status test was missing them, causing type errors and runtime failures.
This commit is contained in:
MoerAI
2026-02-23 10:21:45 +09:00
parent ad79246376
commit 8d66ab742b

View File

@@ -318,14 +318,8 @@ describe("event handling", () => {
// given
const ctx = createMockContext("my-session")
const state: EventState = {
...createEventState(),
mainSessionIdle: true,
mainSessionError: false,
lastError: null,
lastOutput: "",
lastPartText: "",
currentTool: null,
hasReceivedMeaningfulWork: false,
messageCount: 0,
}
const payload: EventPayload = {