@@ -2271,7 +2271,7 @@ test("applyIncrementalAnalysisSettings: adds exclusions for diff-informed-only r
22712271test ( "determineUserConfig - empty config when neither input is specified" , async ( t ) => {
22722272 await withTmpDir ( async ( tmpDir ) => {
22732273 const target = callee ( configUtils . determineUserConfig )
2274- . withEnv ( util . getEnv ( DEFAULT_ACTIONS_VARS ) )
2274+ . withDefaultActionsEnv ( )
22752275 . withFeatures ( [ ] )
22762276 . withArgs (
22772277 tmpDir ,
@@ -2283,20 +2283,18 @@ test("determineUserConfig - empty config when neither input is specified", async
22832283 ) ;
22842284
22852285 // The returned configuration should be empty.
2286- await target . passes ( async ( fn ) => t . deepEqual ( await fn ( ) , { } ) ) ;
2287-
2288- const logger = target . getLogger ( ) ;
2289- // And the fact that no configuration was provided should have been logged,
2290- // but not the messages for the two input sources.
2291- t . true ( logger . hasMessage ( "No configuration file was provided" ) ) ;
2292- t . false ( logger . hasMessage ( "Using config from action input:" ) ) ;
2293- t . false ( logger . hasMessage ( "Using configuration file:" ) ) ;
2294- // And the warning about both inputs should not have been logged.
2295- t . false (
2296- logger . hasMessage (
2286+ await target
2287+ // The fact that no configuration was provided should have been logged,
2288+ . logs ( t , "No configuration file was provided" )
2289+ // But not the messages for the two input sources
2290+ // or the warning about both inputs.
2291+ . notLogs (
2292+ t ,
2293+ "Using config from action input:" ,
2294+ "Using configuration file:" ,
22972295 "Both a config file and config input were provided. Ignoring config file." ,
2298- ) ,
2299- ) ;
2296+ )
2297+ . passes ( t . deepEqual , { } ) ;
23002298 } ) ;
23012299} ) ;
23022300
0 commit comments