Commit c087368
committed
test(sdk): fix expectTypeOf assertion shape for createStartSessionAction
`expectTypeOf().parameter(0).extract<...>()` was producing a constraint
type that didn't match the optional-fields shape of the actual params,
breaking CI typecheck. Verify the typed `clientData` field directly
via `Parameters<typeof start>[0]["clientData"]` against the agent's
clientDataSchema-derived shape (and check it's strictly narrower than
`unknown`). Same coverage, sound assertion.1 parent 2b0c24d commit c087368
1 file changed
Lines changed: 5 additions & 7 deletions
Lines changed: 5 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
| |||
0 commit comments