-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jeremy Ho <jujaga@gmail.com>
- Loading branch information
Showing
5 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# These users will be the default owners for everything in the repo. | ||
# Unless a later match takes precedence, the following users will be | ||
# requested for review when someone opens a pull request. | ||
* @jujaga @norrisng-bc @TimCsaky @jatindersingh93 @kyle1morel @wilwong89 | ||
* @norrisng-bc @TimCsaky @jatindersingh93 @kyle1morel @wilwong89 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Jest 25.x onwards emits coverage reports on a different source path | ||
// https://stackoverflow.com/q/60323177 | ||
import fs from 'fs'; | ||
import process from 'process'; | ||
const file = './coverage/lcov.info'; | ||
|
||
fs.readFile(file, 'utf8', (err, data) => { | ||
if (err) { | ||
return console.error(err); // eslint-disable-line no-console | ||
} | ||
const result = data.replace(/SF:/g, `SF:${process.cwd()}/`); | ||
|
||
fs.writeFile(file, result, 'utf8', err => { | ||
if (err) return console.error(err); // eslint-disable-line no-console | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters