Commit d800636
authored
fix(dotcom): suppress confusing KV error output in feature flags test (tldraw#8405)
The KV error fallback test in `featureFlags.test.ts` intentionally
throws to verify graceful degradation, but the `console.error` from the
catch block was showing up in CI output and looked like a real failure:
```
Failed to get feature flag zero_kill_switch: Error: KV down
at Object.<anonymous> (.../featureFlags.test.ts:170:10)
```
This suppresses the expected `console.error` during the test.
Example run
[here](https://github.com/tldraw/tldraw/actions/runs/23846844691/job/69516189133?pr=8031#step:15:894).
### Change type
- [x] `improvement`
### Test plan
- [x] Unit tests
### Code changes
| Section | LOC change |
| ------- | ---------- |
| Tests | +2 / -0 |1 parent 16eb327 commit d800636
2 files changed
Lines changed: 9 additions & 0 deletions
File tree
- apps/dotcom
- client/src/tla/utils
- sync-worker/src/utils
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
118 | 121 | | |
119 | 122 | | |
120 | 123 | | |
| |||
152 | 155 | | |
153 | 156 | | |
154 | 157 | | |
| 158 | + | |
155 | 159 | | |
156 | 160 | | |
157 | 161 | | |
158 | 162 | | |
159 | 163 | | |
| 164 | + | |
160 | 165 | | |
161 | 166 | | |
162 | 167 | | |
| 168 | + | |
163 | 169 | | |
164 | 170 | | |
165 | 171 | | |
166 | 172 | | |
| 173 | + | |
167 | 174 | | |
168 | 175 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
| 168 | + | |
168 | 169 | | |
169 | 170 | | |
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
173 | 174 | | |
| 175 | + | |
174 | 176 | | |
175 | 177 | | |
176 | 178 | | |
| |||
0 commit comments