Commit 2a58ae5
fix(node): use expect.objectContaining for metric attribute assertions in integration tests
ArrayContaining items are matched with strict equals (subsetEquality is not
propagated), so extra attributes like sentry.timestamp.sequence and server.address
caused all arrayContaining matches to fail. Wrapping with expect.objectContaining
allows extra keys.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent f7bd0cb commit 2a58ae5
1 file changed
Lines changed: 2 additions & 2 deletions
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
0 commit comments