@@ -137,7 +137,7 @@ describe('misc-utils', () => {
137137 describe ( 'runCommand' , ( ) => {
138138 it ( 'runs the command, discarding its output' , async ( ) => {
139139 const execaSpy = jest
140- . spyOn ( execaModule , 'default ' )
140+ . spyOn ( execaModule , 'execa ' )
141141 // Typecast: It's difficult to provide a full return value for execa
142142 . mockResolvedValue ( { stdout : ' some output ' } as any ) ;
143143
@@ -155,7 +155,7 @@ describe('misc-utils', () => {
155155 describe ( 'getStdoutFromCommand' , ( ) => {
156156 it ( 'executes the given command and returns a version of the standard out from the command with whitespace trimmed' , async ( ) => {
157157 const execaSpy = jest
158- . spyOn ( execaModule , 'default ' )
158+ . spyOn ( execaModule , 'execa ' )
159159 // Typecast: It's difficult to provide a full return value for execa
160160 . mockResolvedValue ( { stdout : ' some output ' } as any ) ;
161161
@@ -175,7 +175,7 @@ describe('misc-utils', () => {
175175 describe ( 'getLinesFromCommand' , ( ) => {
176176 it ( 'executes the given command and returns the standard out from the command split into lines' , async ( ) => {
177177 const execaSpy = jest
178- . spyOn ( execaModule , 'default ' )
178+ . spyOn ( execaModule , 'execa ' )
179179 // Typecast: It's difficult to provide a full return value for execa
180180 . mockResolvedValue ( { stdout : 'line 1\nline 2\nline 3' } as any ) ;
181181
@@ -193,7 +193,7 @@ describe('misc-utils', () => {
193193
194194 it ( 'does not strip leading and trailing whitespace from the output, but does remove empty lines' , async ( ) => {
195195 const execaSpy = jest
196- . spyOn ( execaModule , 'default ' )
196+ . spyOn ( execaModule , 'execa ' )
197197 // Typecast: It's difficult to provide a full return value for execa
198198 . mockResolvedValue ( {
199199 stdout : ' line 1\nline 2\n\n line 3 \n' ,
0 commit comments