From c487a719955e1081dfad0e394790823fae2a0aef Mon Sep 17 00:00:00 2001 From: Adam Simon Date: Wed, 4 Feb 2026 12:13:59 +0100 Subject: [PATCH 1/2] Ensure git history for sonar --- .github/workflows/react-ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/react-ci.yml b/.github/workflows/react-ci.yml index e8b712d..a94c6f1 100644 --- a/.github/workflows/react-ci.yml +++ b/.github/workflows/react-ci.yml @@ -17,6 +17,8 @@ jobs: name: Test with vitest and report coverage steps: - uses: actions/checkout@v6 + with: + fetch-depth: 0 - uses: actions/setup-node@v6 with: From 2aeece09fddc2d011c57ee2af86c6077a968ad46 Mon Sep 17 00:00:00 2001 From: Adam Simon Date: Wed, 4 Feb 2026 12:17:11 +0100 Subject: [PATCH 2/2] Exclude tests from coverage --- sonar-project.properties | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sonar-project.properties b/sonar-project.properties index 89dce3b..777809c 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -3,4 +3,5 @@ sonar.organization=configcat sonar.sources=src -sonar.javascript.lcov.reportPaths=coverage/lcov.info \ No newline at end of file +sonar.javascript.lcov.reportPaths=coverage/lcov.info +sonar.coverage.exclusions=**/*.test.*,**/*.spec.*,src/setupTests.ts \ No newline at end of file