@@ -34,6 +34,7 @@ export default async function () {
34
34
const { stdout } = await execWithEnv (
35
35
'ng' ,
36
36
[ 'version' ] ,
37
+ // @ts -ignore
37
38
{
38
39
...DEFAULT_ENV ,
39
40
SHELL : '/bin/bash' ,
@@ -66,6 +67,7 @@ export default async function () {
66
67
const { stdout } = await execWithEnv (
67
68
'ng' ,
68
69
[ 'version' ] ,
70
+ // @ts -ignore
69
71
{
70
72
...DEFAULT_ENV ,
71
73
SHELL : '/bin/bash' ,
@@ -104,6 +106,7 @@ export default async function () {
104
106
const { stdout : stdout1 } = await execWithEnv (
105
107
'ng' ,
106
108
[ 'version' ] ,
109
+ // @ts -ignore
107
110
{
108
111
...DEFAULT_ENV ,
109
112
SHELL : '/bin/bash' ,
@@ -127,6 +130,7 @@ export default async function () {
127
130
// User modifies their configuration and removes `ng completion`.
128
131
await fs . writeFile ( bashrc , '# Some new commands...' ) ;
129
132
133
+ // @ts -ignore
130
134
const { stdout : stdout2 } = await execWithEnv ( 'ng' , [ 'version' ] , {
131
135
...DEFAULT_ENV ,
132
136
SHELL : '/bin/bash' ,
@@ -157,6 +161,7 @@ export default async function () {
157
161
const { stdout : stdout1 } = await execWithEnv (
158
162
'ng' ,
159
163
[ 'version' ] ,
164
+ // @ts -ignore
160
165
{
161
166
...DEFAULT_ENV ,
162
167
SHELL : '/bin/bash' ,
@@ -169,6 +174,7 @@ export default async function () {
169
174
throw new Error ( 'First execution did not prompt for autocompletion setup.' ) ;
170
175
}
171
176
177
+ // @ts -ignore
172
178
const { stdout : stdout2 } = await execWithEnv ( 'ng' , [ 'version' ] , {
173
179
...DEFAULT_ENV ,
174
180
SHELL : '/bin/bash' ,
@@ -203,6 +209,7 @@ export default async function () {
203
209
const err = await execAndCaptureError (
204
210
'ng' ,
205
211
[ 'version' ] ,
212
+ // @ts -ignore
206
213
{
207
214
...DEFAULT_ENV ,
208
215
SHELL : '/bin/bash' ,
@@ -223,6 +230,7 @@ export default async function () {
223
230
const { stdout : stdout2 } = await execWithEnv (
224
231
'ng' ,
225
232
[ 'version' ] ,
233
+ // @ts -ignore
226
234
{
227
235
...DEFAULT_ENV ,
228
236
SHELL : '/bin/bash' ,
@@ -249,6 +257,7 @@ export default async function () {
249
257
250
258
// Does *not* prompt for `ng update` commands.
251
259
await mockHome ( async ( home ) => {
260
+ // @ts -ignore
252
261
// Use `ng update --help` so it's actually a no-op and we don't need to setup a project.
253
262
const { stdout } = await execWithEnv ( 'ng' , [ 'update' , '--help' ] , {
254
263
...DEFAULT_ENV ,
@@ -262,6 +271,7 @@ export default async function () {
262
271
263
272
// Does *not* prompt for `ng completion` commands.
264
273
await mockHome ( async ( home ) => {
274
+ // @ts -ignore
265
275
const { stdout } = await execWithEnv ( 'ng' , [ 'completion' ] , {
266
276
...DEFAULT_ENV ,
267
277
HOME : home ,
@@ -277,6 +287,7 @@ export default async function () {
277
287
const { stdout } = await execWithEnv ( 'ng' , [ 'version' ] , {
278
288
...DEFAULT_ENV ,
279
289
CI : 'true' ,
290
+ // @ts -ignore
280
291
NG_FORCE_TTY : undefined ,
281
292
} ) ;
282
293
@@ -287,6 +298,7 @@ export default async function () {
287
298
288
299
// Does *not* prompt user for non-TTY executions.
289
300
{
301
+ // @ts -ignore
290
302
const { stdout } = await execWithEnv ( 'ng' , [ 'version' ] , {
291
303
...DEFAULT_ENV ,
292
304
NG_FORCE_TTY : 'false' ,
@@ -301,6 +313,7 @@ export default async function () {
301
313
{
302
314
const { stdout } = await execWithEnv ( 'ng' , [ 'version' ] , {
303
315
...DEFAULT_ENV ,
316
+ // @ts -ignore
304
317
HOME : undefined ,
305
318
} ) ;
306
319
@@ -316,6 +329,7 @@ export default async function () {
316
329
{
317
330
const { stdout } = await execWithEnv ( 'ng' , [ 'version' ] , {
318
331
...DEFAULT_ENV ,
332
+ // @ts -ignore
319
333
SHELL : undefined ,
320
334
} ) ;
321
335
@@ -329,6 +343,7 @@ export default async function () {
329
343
330
344
// Does *not* prompt user for executions from unknown shells.
331
345
{
346
+ // @ts -ignore
332
347
const { stdout } = await execWithEnv ( 'ng' , [ 'version' ] , {
333
348
...DEFAULT_ENV ,
334
349
SHELL : '/usr/bin/unknown' ,
@@ -355,6 +370,7 @@ source <(ng completion script)
355
370
` . trim ( ) ,
356
371
) ;
357
372
373
+ // @ts -ignore
358
374
const { stdout } = await execWithEnv ( 'ng' , [ 'version' ] , {
359
375
...DEFAULT_ENV ,
360
376
SHELL : '/bin/bash' ,
@@ -376,6 +392,7 @@ async function windowsTests(): Promise<void> {
376
392
const bashrc = path . join ( home , '.bashrc' ) ;
377
393
await fs . writeFile ( bashrc , `# Other content...` ) ;
378
394
395
+ // @ts -ignore
379
396
const { stdout } = await execWithEnv ( 'ng' , [ 'version' ] , { ...env } ) ;
380
397
381
398
if ( AUTOCOMPLETION_PROMPT . test ( stdout ) ) {
0 commit comments