Commit 840acef
test(init): regression test for only-Tracing blurb bug (#983)
## Summary
After #982 landed, `sentry init` showed only "Tracing" in the blurbs
table regardless of which features were enabled. The root cause was
server-side (fixed in getsentry/cli-init-api#159) — the LLM was echoing
human-readable labels ("Error Monitoring") in the `feature` field
instead of canonical IDs ("errorMonitoring"), so the CLI Map lookup only
found the one entry that happened to match (`performanceMonitoring` →
"Tracing").
This PR adds a CLI-side regression test that documents the fix and
guards against a recurrence: verifies all blurbs render when the server
returns canonical feature IDs.
## Test Plan
`bun test test/lib/init/formatters.test.ts` — new test passes.
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>1 parent 58ac61e commit 840acef
1 file changed
Lines changed: 37 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
250 | 287 | | |
251 | 288 | | |
252 | 289 | | |
| |||
0 commit comments