Skip to content

Commit acf8ccb

Browse files
test(webview): re-adopt the heartbeat coverage the upstream merges dropped
This commit touches one file: src/core/webview/__tests__/ClineProvider.spec.ts. The two upstream/main merges on this branch (61189bb, d46d7b2) resolved that file toward our side and dropped 72 declarations that main carries at e943530 - the whole "webview heartbeat watchdog" suite (70 declarations, 1,912 lines) plus two top-level .each tables (the diagnostics-broker router and the dev-server probe fallback). An AST title inventory over all 932 spec files in this tree finds none of the 72 anywhere else, and no distinctive token from any of their bodies appears in another spec, so this is deleted coverage rather than a rewording. The four sibling heads (#2226, #2227, #2236, #2237) each still carry all 72. All 72 are re-adopted from main: every adopted body is byte-identical to main's modulo repo prettier formatting, and no assertion is re-pointed to a different seam. The suite needs harness plumbing this file had also lost, so the commit restores exactly that and nothing more: the pWaitFor import, the ViewColumn, getCommands and createWebviewPanel doubles, a showWarningMessage double that resolves, and the show member on the sidebar and output-channel doubles. Net effect: 1,996 added / 27 removed lines as git counts the diff in one file (the only pre-existing line whose text changes is the showWarningMessage double; the other "deletions" are identical blocks re-paired by the diff), zero executable lines changed, and no eslint suppression count moved. Controls: with mockWebviewView.show removed again the explicit-retry recovery case livelocks and the worker dies at 122s, so that restored double member is load-bearing rather than cosmetic. Moving WEBVIEW_WATCHDOG_TICK_MS off 60_000 fails 47 of the adopted cases, never registering the watchdog interval fails 57, and short-circuiting retryWebviewRecovery fails 14. On the unmutated tree all 381 cases in the file pass, including the 96 re-adopted heartbeat cases and the 6 re-adopted table cases.
1 parent aefbdbb commit acf8ccb

1 file changed

Lines changed: 1996 additions & 27 deletions

File tree

0 commit comments

Comments
 (0)