Repository navigation
Commit e09e1bf
easonLiangWorldedtech
test(view-state): read the recorded update calls through vi.mocked so check-types accepts them
mockContext.globalState.update is typed by the vscode ExtensionContext signature, not as a vitest Mock,
so .mock.calls failed zoo-code#check-types (TS2339 plus an implicit any on the filter parameter). Wrapping
in vi.mocked keeps the assertion identical and typed.
Local run: 255 tests pass in ClineProvider.spec.ts, eslint clean. Note that local tsc cannot catch this
class of error: the shared node_modules junction has no real vscode typings, so those members resolve
to any locally.1 parent 224ff2d commit e09e1bf
1 file changed
Lines changed: 9 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4538 | 4538 | | |
4539 | 4539 | | |
4540 | 4540 | | |
4541 | | - | |
| 4541 | + | |
| 4542 | + | |
| 4543 | + | |
4542 | 4544 | | |
4543 | 4545 | | |
4544 | 4546 | | |
| |||
4612 | 4614 | | |
4613 | 4615 | | |
4614 | 4616 | | |
4615 | | - | |
| 4617 | + | |
| 4618 | + | |
| 4619 | + | |
4616 | 4620 | | |
4617 | 4621 | | |
4618 | 4622 | | |
| |||
4661 | 4665 | | |
4662 | 4666 | | |
4663 | 4667 | | |
4664 | | - | |
| 4668 | + | |
| 4669 | + | |
| 4670 | + | |
4665 | 4671 | | |
4666 | 4672 | | |
4667 | 4673 | | |
| |||
0 commit comments