Skip to content

Commit 2fbc2a8

Browse files
authored
Merge pull request #6 from coverage-robot/chore/coverage-robot-config-file
Add path replacement config for lcov files in TypeScript and Jest example
2 parents 1f4e33b + ccad196 commit 2fbc2a8

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

coveragerobot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
path_replacements:
2+
# The coverage reports need to match the path of the source files in GitHub. In this case,
3+
# the files generated by Jest are relative to the project root (inside of the example folder),
4+
# so we need to re-map the paths to match the source files in the repository when uploaded.
5+
- before: '^typescript-jest/'
6+
after: 'example/typescript-jest/'

examples/typescript-jest/jest.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const config: Config = {
1010
".styled.{tsx,ts}",
1111
"index.ts",
1212
],
13+
coverageReporters: [["lcov", { projectRoot: ".." }]],
1314
};
1415

1516
export default config;

0 commit comments

Comments
 (0)