@@ -98,7 +98,7 @@ describe('Inquirerer - defaultFrom feature', () => {
9898
9999 describe ( 'git resolvers' , ( ) => {
100100 it ( 'should use git.user.name as default' , async ( ) => {
101- mockedExecSync . mockReturnValue ( Buffer . from ( 'John Doe\n' ) ) ;
101+ mockedExecSync . mockReturnValue ( 'John Doe\n' as any ) ;
102102
103103 const prompter = new Inquirerer ( {
104104 input : mockInput ,
@@ -124,7 +124,7 @@ describe('Inquirerer - defaultFrom feature', () => {
124124 } ) ;
125125
126126 it ( 'should use git.user.email as default' , async ( ) => {
127- mockedExecSync . mockReturnValue ( Buffer . from ( '[email protected] \n' ) ) ; 127+ mockedExecSync . mockReturnValue ( '[email protected] \n' as any ) ; 128128
129129 const prompter = new Inquirerer ( {
130130 input : mockInput ,
@@ -176,8 +176,8 @@ describe('Inquirerer - defaultFrom feature', () => {
176176
177177 it ( 'should resolve multiple git fields' , async ( ) => {
178178 mockedExecSync
179- . mockReturnValueOnce ( Buffer . from ( 'Jane Smith\n' ) )
180- . mockReturnValueOnce ( Buffer . from ( '[email protected] \n' ) ) ; 179+ . mockReturnValueOnce ( 'Jane Smith\n' as any )
180+ . mockReturnValueOnce ( '[email protected] \n' as any ) ; 181181
182182 const prompter = new Inquirerer ( {
183183 input : mockInput ,
@@ -337,7 +337,7 @@ describe('Inquirerer - defaultFrom feature', () => {
337337
338338 describe ( 'priority and fallbacks' , ( ) => {
339339 it ( 'should prioritize argv over defaultFrom' , async ( ) => {
340- mockedExecSync . mockReturnValue ( Buffer . from ( 'Git User\n' ) ) ;
340+ mockedExecSync . mockReturnValue ( 'Git User\n' as any ) ;
341341
342342 const prompter = new Inquirerer ( {
343343 input : mockInput ,
@@ -384,7 +384,7 @@ describe('Inquirerer - defaultFrom feature', () => {
384384 } ) ;
385385
386386 it ( 'should handle mixed defaultFrom and static defaults' , async ( ) => {
387- mockedExecSync . mockReturnValue ( Buffer . from ( 'Jane Doe\n' ) ) ;
387+ mockedExecSync . mockReturnValue ( 'Jane Doe\n' as any ) ;
388388
389389 const prompter = new Inquirerer ( {
390390 input : mockInput ,
0 commit comments