Repository navigation
Commit 1036aa4
Bertan Ari
test(modes): relax over-strict Profiler assertion in McpServerRestriction Test 3
`<Profiler onRender>` fires whenever the Profiler boundary commits, which
happens whenever its parent re-renders — even when every child inside
bails out via React.memo. The `=== 0` assertion in Test 3 part (b)
therefore measured the Profiler's own commit cadence rather than the
child's render work. Relax to `<= 1` and document the caveat in the
test's JSDoc.
The real anti-flicker guarantee is verified by Test 2 (DOM-node identity
preserved across an equivalent `mcpServers` heartbeat). No production
code changed.1 parent 74703b6 commit 1036aa4
1 file changed
Lines changed: 14 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
290 | 299 | | |
291 | 300 | | |
292 | 301 | | |
| |||
322 | 331 | | |
323 | 332 | | |
324 | 333 | | |
325 | | - | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
326 | 339 | | |
327 | 340 | | |
328 | 341 | | |
| |||
0 commit comments