@@ -326,6 +326,7 @@ describe("API", () => {
326326 } ) ;
327327
328328 describe ( "fetchWorkflowRunIds" , ( ) => {
329+ const startTimeISO = "2025-06-17T22:24:23.238Z" ;
329330 const workflowIdCfg : ActionConfig = {
330331 token : "secret" ,
331332 ref : "/refs/heads/feature_branch" ,
@@ -358,9 +359,9 @@ describe("API", () => {
358359 ) ;
359360
360361 // Behaviour
361- await expect ( fetchWorkflowRunIds ( 0 , branch ) ) . resolves . toStrictEqual (
362- mockData . workflow_runs . map ( ( run ) => run . id ) ,
363- ) ;
362+ await expect (
363+ fetchWorkflowRunIds ( 0 , branch , startTimeISO ) ,
364+ ) . resolves . toStrictEqual ( mockData . workflow_runs . map ( ( run ) => run . id ) ) ;
364365
365366 // Logging
366367 assertOnlyCalled ( coreDebugLogMock ) ;
@@ -371,6 +372,7 @@ describe("API", () => {
371372 Repository: owner/repository
372373 Branch Filter: true (feature_branch)
373374 Workflow ID: 0
375+ Created: >=2025-06-17T22:24:23.238Z
374376 Runs Fetched: [0, 1, 2]"
375377 ` ,
376378 ) ;
@@ -389,7 +391,9 @@ describe("API", () => {
389391 ) ;
390392
391393 // Behaviour
392- await expect ( fetchWorkflowRunIds ( 0 , branch ) ) . rejects . toThrow (
394+ await expect (
395+ fetchWorkflowRunIds ( 0 , branch , startTimeISO ) ,
396+ ) . rejects . toThrow (
393397 `Failed to fetch Workflow runs, expected 200 but received ${ errorStatus } ` ,
394398 ) ;
395399
@@ -417,7 +421,9 @@ describe("API", () => {
417421 ) ;
418422
419423 // Behaviour
420- await expect ( fetchWorkflowRunIds ( 0 , branch ) ) . resolves . toStrictEqual ( [ ] ) ;
424+ await expect (
425+ fetchWorkflowRunIds ( 0 , branch , startTimeISO ) ,
426+ ) . resolves . toStrictEqual ( [ ] ) ;
421427
422428 // Logging
423429 assertOnlyCalled ( coreDebugLogMock ) ;
@@ -428,6 +434,7 @@ describe("API", () => {
428434 Repository: owner/repository
429435 Branch Filter: true (feature_branch)
430436 Workflow ID: 0
437+ Created: >=2025-06-17T22:24:23.238Z
431438 Runs Fetched: []"
432439 ` ,
433440 ) ;
@@ -453,7 +460,9 @@ describe("API", () => {
453460 ) ;
454461
455462 // Behaviour
456- await expect ( fetchWorkflowRunIds ( 0 , branch ) ) . resolves . not . toThrow ( ) ;
463+ await expect (
464+ fetchWorkflowRunIds ( 0 , branch , startTimeISO ) ,
465+ ) . resolves . not . toThrow ( ) ;
457466 expect ( parsedRef ) . toStrictEqual ( "master" ) ;
458467
459468 // Logging
@@ -465,6 +474,7 @@ describe("API", () => {
465474 Repository: owner/repository
466475 Branch Filter: true (master)
467476 Workflow ID: 0
477+ Created: >=2025-06-17T22:24:23.238Z
468478 Runs Fetched: []"
469479 ` ,
470480 ) ;
@@ -490,7 +500,9 @@ describe("API", () => {
490500 ) ;
491501
492502 // Behaviour
493- await expect ( fetchWorkflowRunIds ( 0 , branch ) ) . resolves . not . toThrow ( ) ;
503+ await expect (
504+ fetchWorkflowRunIds ( 0 , branch , startTimeISO ) ,
505+ ) . resolves . not . toThrow ( ) ;
494506 expect ( parsedRef ) . toBeUndefined ( ) ;
495507
496508 // Logging
@@ -502,6 +514,7 @@ describe("API", () => {
502514 Repository: owner/repository
503515 Branch Filter: false (/refs/tags/1.5.0)
504516 Workflow ID: 0
517+ Created: >=2025-06-17T22:24:23.238Z
505518 Runs Fetched: []"
506519 ` ,
507520 ) ;
@@ -527,7 +540,9 @@ describe("API", () => {
527540 ) ;
528541
529542 // Behaviour
530- await expect ( fetchWorkflowRunIds ( 0 , branch ) ) . resolves . not . toThrow ( ) ;
543+ await expect (
544+ fetchWorkflowRunIds ( 0 , branch , startTimeISO ) ,
545+ ) . resolves . not . toThrow ( ) ;
531546 expect ( parsedRef ) . toBeUndefined ( ) ;
532547
533548 // Logging
@@ -539,6 +554,7 @@ describe("API", () => {
539554 Repository: owner/repository
540555 Branch Filter: false (/refs/cake)
541556 Workflow ID: 0
557+ Created: >=2025-06-17T22:24:23.238Z
542558 Runs Fetched: []"
543559 ` ,
544560 ) ;
0 commit comments