Skip to content

Commit

Permalink
let user defined variables override defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
flovilmart committed Feb 15, 2020
1 parent bf6d69f commit f6eff21
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -429,10 +429,10 @@ describe('onRunComplete', () => {
.onRunComplete(new Set(), {}, mockAggResults)
.then(() => {
expect(istanbulReports.create).toHaveBeenCalledWith('json', {
maxCols: process.stdout.columns || Infinity,
maxCols: 10,
});
expect(istanbulReports.create).toHaveBeenCalledWith('lcov', {
maxCols: process.stdout.columns || Infinity,
maxCols: 10,
projectRoot: './',
});
expect(testReporter.getLastError()).toBeUndefined();
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-reporters/src/coverage_reporter.ts
Expand Up @@ -110,8 +110,8 @@ export default class CoverageReporter extends BaseReporter {
}
istanbulReports
.create(reporter, {
...additionalOptions,
maxCols: process.stdout.columns || Infinity,
...additionalOptions,
})
// @ts-ignore
.execute(reportContext);
Expand Down

0 comments on commit f6eff21

Please sign in to comment.