File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -382,6 +382,30 @@ describe("parser", () => {
382
382
} )
383
383
} )
384
384
385
+ it ( "should use env var CS_DISABLE_GETTING_STARTED_OVERRIDE" , async ( ) => {
386
+ process . env . CS_DISABLE_GETTING_STARTED_OVERRIDE = "1"
387
+ const args = parse ( [ ] )
388
+ expect ( args ) . toEqual ( { } )
389
+
390
+ const defaultArgs = await setDefaults ( args )
391
+ expect ( defaultArgs ) . toEqual ( {
392
+ ...defaults ,
393
+ "disable-getting-started-override" : true ,
394
+ } )
395
+ } )
396
+
397
+ it ( "should use env var CS_DISABLE_GETTING_STARTED_OVERRIDE set to true" , async ( ) => {
398
+ process . env . CS_DISABLE_GETTING_STARTED_OVERRIDE = "true"
399
+ const args = parse ( [ ] )
400
+ expect ( args ) . toEqual ( { } )
401
+
402
+ const defaultArgs = await setDefaults ( args )
403
+ expect ( defaultArgs ) . toEqual ( {
404
+ ...defaults ,
405
+ "disable-getting-started-override" : true ,
406
+ } )
407
+ } )
408
+
385
409
it ( "should error if password passed in" , ( ) => {
386
410
expect ( ( ) => parse ( [ "--password" , "supersecret123" ] ) ) . toThrowError (
387
411
"--password can only be set in the config file or passed in via $PASSWORD" ,
You can’t perform that action at this time.
0 commit comments