@@ -200,12 +200,9 @@ test("load code quality config", async (t) => {
200200 ) ;
201201
202202 // And the config we expect it to result in
203- const expectedConfig : configUtils . Config = {
204- version : actionsUtil . getActionVersion ( ) ,
203+ const expectedConfig = createTestConfig ( {
205204 analysisKinds : [ AnalysisKind . CodeQuality ] ,
206205 languages : [ KnownLanguage . actions ] ,
207- buildMode : undefined ,
208- originalUserInput : { } ,
209206 // This gets set because we only have `AnalysisKind.CodeQuality`
210207 computedConfig : {
211208 "disable-default-queries" : true ,
@@ -219,14 +216,7 @@ test("load code quality config", async (t) => {
219216 debugMode : false ,
220217 debugArtifactName : "" ,
221218 debugDatabaseName : "" ,
222- trapCaches : { } ,
223- trapCacheDownloadTime : 0 ,
224- dependencyCachingEnabled : CachingKind . None ,
225- extraQueryExclusions : [ ] ,
226- overlayDatabaseMode : OverlayDatabaseMode . None ,
227- useOverlayDatabaseCaching : false ,
228- repositoryProperties : { } ,
229- } ;
219+ } ) ;
230220
231221 t . deepEqual ( config , expectedConfig ) ;
232222 } ) ;
@@ -507,9 +497,7 @@ test("load non-empty input", async (t) => {
507497 } ;
508498
509499 // And the config we expect it to parse to
510- const expectedConfig : configUtils . Config = {
511- version : actionsUtil . getActionVersion ( ) ,
512- analysisKinds : [ AnalysisKind . CodeScanning ] ,
500+ const expectedConfig = createTestConfig ( {
513501 languages : [ KnownLanguage . javascript ] ,
514502 buildMode : BuildMode . None ,
515503 originalUserInput : userConfig ,
@@ -521,14 +509,7 @@ test("load non-empty input", async (t) => {
521509 debugMode : false ,
522510 debugArtifactName : "my-artifact" ,
523511 debugDatabaseName : "my-db" ,
524- trapCaches : { } ,
525- trapCacheDownloadTime : 0 ,
526- dependencyCachingEnabled : CachingKind . None ,
527- extraQueryExclusions : [ ] ,
528- overlayDatabaseMode : OverlayDatabaseMode . None ,
529- useOverlayDatabaseCaching : false ,
530- repositoryProperties : { } ,
531- } ;
512+ } ) ;
532513
533514 const languagesInput = "javascript" ;
534515 const configFilePath = createConfigFile ( inputFileContents , tempDir ) ;
0 commit comments