Commit 223cf45
test(core): add proper assertion for flags context in error events
The test for copyFlagsFromScopeToEvent was not actually verifying that
the flags were copied to the event. Since the function mutates and returns
the same event object, checking result === event is trivially true.
Added assertion to verify event.contexts.flags contains the expected flags.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 53e6de3 commit 223cf45
1 file changed
+6
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | | - | |
168 | 167 | | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
169 | 174 | | |
170 | 175 | | |
171 | 176 | | |
0 commit comments