Skip to content

Commit 5718138

Browse files
test: read the starter row's session_id through objectContaining
The event union now carries the opt-out row, which has no session, so the direct property read no longer type-checks. Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_01VEmKQuB7SVUWpabSm51jon
1 parent 0298ce9 commit 5718138

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎packages/opencode/test/altimate/telemetry/starter-action-picked.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ describe("starter_action_picked row", () => {
7777

7878
test("falls back to the process context's session", () => {
7979
const row = starterActionPickedEvent(7, { action: "done" })
80-
expect(row.session_id).toBe(Telemetry.getContext().sessionId)
80+
expect(row).toEqual(expect.objectContaining({ session_id: Telemetry.getContext().sessionId }))
8181
})
8282
})
8383

0 commit comments

Comments
 (0)