Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/jest/src/builders/jest/jest.impl.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ describe('Jest Builder', () => {
colors: false,
reporters: ['/test/path'],
verbose: false,
coverageReporters: 'test',
coverageReporters: ['test'],
coverageDirectory: '/test/path',
watch: false
},
Expand Down Expand Up @@ -220,7 +220,7 @@ describe('Jest Builder', () => {
colors: false,
verbose: false,
reporters: ['/test/path'],
coverageReporters: 'test',
coverageReporters: ['test'],
coverageDirectory: '/test/path',
testResultsProcessor: 'results-processor',
updateSnapshot: true,
Expand Down
6 changes: 5 additions & 1 deletion packages/jest/src/builders/jest/jest.impl.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ function run(
testPathPattern: options.testPathPattern,
colors: options.colors,
verbose: options.verbose,
coverageReporters: options.coverageReporters,
coverageDirectory: options.coverageDirectory,
testResultsProcessor: options.testResultsProcessor,
updateSnapshot: options.updateSnapshot,
Expand Down Expand Up @@ -141,6 +140,11 @@ function run(
config.reporters = options.reporters;
}

if (options.coverageReporters) {
// In Jest coverageReporters is an array of strings
config.coverageReporters = [options.coverageReporters];
}

return from(runCLI(config, [options.jestConfig])).pipe(
map(results => {
return {
Expand Down