Skip to content

Commit

Permalink
fix: use default maxCols from Istanbul
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB committed Feb 24, 2022
1 parent c65bb45 commit 0f1e7df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions packages/jest-reporters/src/CoverageReporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,7 @@ export default class CoverageReporter extends BaseReporter {
[reporter, additionalOptions] = reporter;
}
istanbulReports
.create(reporter, {
maxCols: process.stdout.columns || Infinity,
...additionalOptions,
})
.create(reporter, additionalOptions)
.execute(reportContext);
});
aggregatedResults.coverageMap = map;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,9 +428,7 @@ describe('onRunComplete', () => {
return testReporter
.onRunComplete(new Set(), {}, mockAggResults)
.then(() => {
expect(istanbulReports.create).toHaveBeenCalledWith('json', {
maxCols: process.stdout.columns || Infinity,
});
expect(istanbulReports.create).toHaveBeenCalledWith('json', {});
expect(istanbulReports.create).toHaveBeenCalledWith('lcov', {
maxCols: 10,
projectRoot: './',
Expand Down

0 comments on commit 0f1e7df

Please sign in to comment.