mirror of https://github.com/status-im/metro.git
Remove @format and trailing commas from mapCoverage
Reviewed By: cpojer Differential Revision: D6388338 fbshipit-source-id: ef33f530397e8ca3de8625b33333df2d57d228d3
This commit is contained in:
parent
d4b7cb5d08
commit
4f3c4ca238
|
@ -5,7 +5,6 @@
|
|||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*
|
||||
* @format
|
||||
*/
|
||||
|
||||
/**
|
||||
|
@ -38,13 +37,13 @@ const reporter = createReporter();
|
|||
const mapFileCoverage = fileCoverage => {
|
||||
fileCoverage.path = fileCoverage.path.replace(
|
||||
/(.*packages\/.*\/)(build)(\/.*)/,
|
||||
'$1src$3',
|
||||
'$1src$3'
|
||||
);
|
||||
return fileCoverage;
|
||||
};
|
||||
|
||||
Object.keys(coverage).forEach(filename =>
|
||||
map.addFileCoverage(mapFileCoverage(coverage[filename])),
|
||||
map.addFileCoverage(mapFileCoverage(coverage[filename]))
|
||||
);
|
||||
|
||||
reporter.addAll(['json', 'lcov', 'text']);
|
||||
|
|
Loading…
Reference in New Issue