Code coverage stopped working for typescript projects

Our builds using SonarQube have started incorrectly reporting code coverage and missing off tests.
A build which happened on 2nd Jan passed with 100% code coverage. A dependency change in another file was the only change since then now it is reporting 66% code coverage depsite no extra code being written or tests removed

In another repo there was passing tests yesterday and now failing with some tests ignored.

ALM used: Github

  • CI system used: Github actions

  • Scanner command used when applicable : github actions - SonarSource/sonarqube-scan-action@master

  • Languages of the repository: typescript

  • Only if the SonarCloud project is public, the URL - https://sonarcloud.io/project/overview?id=NHSDigital_eps-prescription-status-update-api
    *

  • Error observed:
    Coverage is showing as 66%
    A scan at Fri, 2 Dec 2026 afternoon worked showed correct coverage, but our next one at Tue, 6 Dec 2026 morning showed 66% coverage

  • Steps to reproduce: run scan

  • Potential workaround: none

Hi,

Welcome to the community!

Can you share a debug analysis log, please?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Thx,
Ann