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:
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user