@@ -137,7 +137,7 @@ describe('misc-utils', () => {
137
137
describe ( 'runCommand' , ( ) => {
138
138
it ( 'runs the command, discarding its output' , async ( ) => {
139
139
const execaSpy = jest
140
- . spyOn ( execaModule , 'default ' )
140
+ . spyOn ( execaModule , 'execa ' )
141
141
// Typecast: It's difficult to provide a full return value for execa
142
142
. mockResolvedValue ( { stdout : ' some output ' } as any ) ;
143
143
@@ -155,7 +155,7 @@ describe('misc-utils', () => {
155
155
describe ( 'getStdoutFromCommand' , ( ) => {
156
156
it ( 'executes the given command and returns a version of the standard out from the command with whitespace trimmed' , async ( ) => {
157
157
const execaSpy = jest
158
- . spyOn ( execaModule , 'default ' )
158
+ . spyOn ( execaModule , 'execa ' )
159
159
// Typecast: It's difficult to provide a full return value for execa
160
160
. mockResolvedValue ( { stdout : ' some output ' } as any ) ;
161
161
@@ -175,7 +175,7 @@ describe('misc-utils', () => {
175
175
describe ( 'getLinesFromCommand' , ( ) => {
176
176
it ( 'executes the given command and returns the standard out from the command split into lines' , async ( ) => {
177
177
const execaSpy = jest
178
- . spyOn ( execaModule , 'default ' )
178
+ . spyOn ( execaModule , 'execa ' )
179
179
// Typecast: It's difficult to provide a full return value for execa
180
180
. mockResolvedValue ( { stdout : 'line 1\nline 2\nline 3' } as any ) ;
181
181
@@ -193,7 +193,7 @@ describe('misc-utils', () => {
193
193
194
194
it ( 'does not strip leading and trailing whitespace from the output, but does remove empty lines' , async ( ) => {
195
195
const execaSpy = jest
196
- . spyOn ( execaModule , 'default ' )
196
+ . spyOn ( execaModule , 'execa ' )
197
197
// Typecast: It's difficult to provide a full return value for execa
198
198
. mockResolvedValue ( {
199
199
stdout : ' line 1\nline 2\n\n line 3 \n' ,
0 commit comments