fix: run all tests in CI and remap LCOV paths for Sonar
sonar / sonar (push) Skipped
sonar / sonar (pull_request) Canceled after 7m29s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-08-11 15:06:50 -03:00
co-authored by Cursor
parent 9ef746aa4f
commit b3f515bb64
3 changed files with 13 additions and 3 deletions
+10
View File
@@ -0,0 +1,10 @@
const fs = require("node:fs");
const path = require("node:path");
const file = path.join("coverage", "lcov.info");
const remapped = fs.readFileSync(file, "utf8").replace(/^SF:(.+)$/gm, (_, p) => {
const norm = String(p).replaceAll("\\", "/");
const match = /(?:^|\/)dist\/(.+)\.js$/.exec(norm);
return match ? `SF:src/${match[1]}.ts` : `SF:${norm}`;
});
fs.writeFileSync(file, remapped);