@@ -26,7 +26,7 @@ describe('shouldReportCrash', () => {
26
26
. mockImplementation ( ( ) => true ) ;
27
27
const setEncodingSpy = vi
28
28
. spyOn ( process . stdin , 'setEncoding' )
29
- . mockImplementation ( ( ) => { } ) ;
29
+ . mockImplementation ( ( ) => process . stdin as any ) ;
30
30
const onceSpy = vi
31
31
. spyOn ( process . stdin , 'once' )
32
32
. mockImplementation ( ( ) => process . stdin ) ;
@@ -53,10 +53,10 @@ describe('shouldReportCrash', () => {
53
53
. mockImplementation ( ( ) => true ) ;
54
54
const setEncodingSpy = vi
55
55
. spyOn ( process . stdin , 'setEncoding' )
56
- . mockImplementation ( ( ) => { } ) ;
56
+ . mockImplementation ( ( ) => process . stdin as any ) ;
57
57
const onceSpy = vi
58
58
. spyOn ( process . stdin , 'once' )
59
- . mockImplementation ( ( event , callback ) => {
59
+ . mockImplementation ( ( _event , callback ) => {
60
60
// Simulate user typing 'n'
61
61
setTimeout ( ( ) => {
62
62
( callback as any ) ( 'n' ) ;
@@ -86,10 +86,10 @@ describe('shouldReportCrash', () => {
86
86
. mockImplementation ( ( ) => true ) ;
87
87
const setEncodingSpy = vi
88
88
. spyOn ( process . stdin , 'setEncoding' )
89
- . mockImplementation ( ( ) => { } ) ;
89
+ . mockImplementation ( ( ) => process . stdin as any ) ;
90
90
const onceSpy = vi
91
91
. spyOn ( process . stdin , 'once' )
92
- . mockImplementation ( ( event , callback ) => {
92
+ . mockImplementation ( ( _event , callback ) => {
93
93
// Simulate user typing 'y'
94
94
setTimeout ( ( ) => {
95
95
( callback as any ) ( 'y' ) ;
0 commit comments