Skip to content

Commit

Permalink
...
Browse files Browse the repository at this point in the history
  • Loading branch information
ggazzo committed Oct 6, 2023
1 parent 788114f commit b64778b
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 4 deletions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions apps/meteor/packages/rocketchat-coverage/package.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ Npm.depends({
'istanbul-lib-report': '3.0.0',
'istanbul-reports': '3.0.2',
'istanbul-lib-coverage': '3.0.0',
'istanbul-lib-source-maps': '4.0.0',
});
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import libReport from 'istanbul-lib-report';
import reports from 'istanbul-reports';
import libCoverage from 'istanbul-lib-coverage';

import iLibSourceMaps from 'istanbul-lib-source-maps';

const dir = process.env.COVERAGE_DIR;
const reporter = process.env.COVERAGE_REPORTER || 'lcov';

Expand Down Expand Up @@ -33,6 +35,10 @@ process.on('exit', async () => {

const coverageMap = libCoverage.createCoverageMap(globalThis['__coverage__']);

const mapStore = iLibSourceMaps.createSourceMapStore();

const transformed = mapStore.transformCoverage(coverageMap);

const configWatermarks = {
statements: [50, 80],
functions: [50, 80],
Expand All @@ -42,7 +48,7 @@ process.on('exit', async () => {

const context = libReport.createContext({
dir,
coverageMap,
transformed,
});

const report = reports.create(reporter);
Expand Down
5 changes: 2 additions & 3 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ flags:
paths:
- apps/meteor/
carryforward: true

client:
e2e-api:
paths:
- apps/meteor/client
- apps/meteor/
carryforward: true

comment:
Expand Down

0 comments on commit b64778b

Please sign in to comment.