Repository navigation
Commit de36bde
easonLiangWorldedtech
fix(diff-view): type the discard-test doubles the way tsc reads them
The compile leg runs pnpm run check-types, which is tsc --noEmit over src, and it
fails at d030e04 on the two test doubles the previous two commits added: the
position double is built through vi.fn so its return type is not the Position the
document slot asks for, and the deferred-scroll handle is declared
ReturnType<typeof setTimeout> on the provider while this file resolves the global
timer call to the other declaration. Both sit in the spec; no production line
moves. tsc --noEmit exits 0 after this and the spec still runs 135 green.
This lane had run eslint, prettier and vitest on the touched files but never the
project typecheck, and vitest transpiles without typechecking, so the leg stayed
unexercised locally until CI reported it.1 parent d030e04 commit de36bde
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2809 | 2809 | | |
2810 | 2810 | | |
2811 | 2811 | | |
2812 | | - | |
| 2812 | + | |
2813 | 2813 | | |
2814 | 2814 | | |
2815 | 2815 | | |
| |||
2884 | 2884 | | |
2885 | 2885 | | |
2886 | 2886 | | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
2887 | 2892 | | |
2888 | | - | |
2889 | 2893 | | |
2890 | 2894 | | |
2891 | 2895 | | |
| |||
0 commit comments