SPM250300 | Continuous employment: baby born early
From HM Revenue & Customs · Statutory Payments Manual
If an employee’s baby is born before or during the QW the continuous employment rule is satisfied if, but for the early childbirth, they would have completed 26 weeks’ continuous employment with the same employer into the QW.