Commit f2bc4ac
Address review: clear Sentry user on opt-out, stub getUserId in jest mock
- Clear the per-install user id (Sentry.setUser(null)) before Sentry.close
on data-sharing opt-out. Sentry.close may still report (anonymized) until
the next refresh; without this those reports would keep the id attached.
- Add getUserId to the helpers/metrics jest mock in setupTests so rendering
ErrorTracking under test doesn't call an undefined mock.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 459c3af commit f2bc4ac
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
82 | 83 | | |
83 | 84 | | |
84 | 85 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | | - | |
| 59 | + | |
| 60 | + | |
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
| |||
0 commit comments