Skip to content

Commit f6470ef

Browse files
ggazzoclaude
andcommitted
fix: prefix nyc coverage paths with apps/meteor/ for Codecov resolution
nyc generates lcov paths relative to apps/meteor/ (e.g. SF:server/lib/foo.ts) but Codecov needs them relative to the repo root (e.g. SF:apps/meteor/server/lib/foo.ts). Using sed to prefix paths after generation is safer than global codecov.yml fixes which could interfere with ee/packages/ paths from other uploads. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent d6347ee commit f6470ef

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/meteor/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
".testunit:definition": "mocha --config ./.mocharc.definition.js",
2727
".testunit:jest": "TZ=UTC TS_NODE_COMPILER_OPTIONS='{\"allowJs\": false}' jest",
2828
".testunit:server": "mocha --config ./.mocharc.js",
29-
".testunit:server:cov": "nyc --report-dir coverage/nyc -r text -r lcov mocha --config ./.mocharc.js",
29+
".testunit:server:cov": "nyc --report-dir coverage/nyc -r text -r lcov mocha --config ./.mocharc.js && sed -i 's|^SF:|SF:apps/meteor/|' coverage/nyc/lcov.info",
3030
"build:ci": "METEOR_DEBUG_BUILD=1 METEOR_DISABLE_OPTIMISTIC_CACHING=1 meteor build --verbose --server-only --directory /tmp/dist",
3131
"coverage": "TS_NODE_COMPILER_OPTIONS='{\"module\": \"commonjs\"}' nyc -r html mocha --config ./.mocharc.js",
3232
"debug": "meteor run --inspect",

0 commit comments

Comments
 (0)