Repository navigation
Commit abb8a21
committed
test(webview): replace the any cast on the globalState mock with a typed vi.fn
CodeRabbit review (2026-09-04): the writeDelayMs default test cast
mockContext.globalState.get to any to call mockImplementation. Use the
same typed reassignment pattern the customModePrompts test in this file
already uses — Memento.get has no mock type, so assign a vi.fn with an
explicitly typed implementation directly. Behavior is unchanged and the
no-explicit-any suppression count for this file drops by one
(198 -> 197).1 parent 065bef1 commit abb8a21
2 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1448 | 1448 | | |
1449 | 1449 | | |
1450 | 1450 | | |
1451 | | - | |
1452 | | - | |
| 1451 | + | |
| 1452 | + | |
| 1453 | + | |
1453 | 1454 | | |
1454 | 1455 | | |
1455 | 1456 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1036 | 1036 | | |
1037 | 1037 | | |
1038 | 1038 | | |
1039 | | - | |
| 1039 | + | |
1040 | 1040 | | |
1041 | 1041 | | |
1042 | 1042 | | |
| |||
0 commit comments