Skip to content

Commit

Permalink
fix: skip adding --coverage if coverage arg already present
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgroshkov committed Apr 14, 2022
1 parent f9a4feb commit 2d4fda9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/util/jest.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export async function runJest(opt: RunJestOpt = {}): Promise<void> {
if (CI) {
args.push('--ci')

if (!integration && !manual) {
if (!integration && !manual && !processArgs.some(a => a.includes('coverage'))) {
// Coverage only makes sense for unit tests, not for integration/manual
args.push('--coverage')
}
Expand Down

0 comments on commit 2d4fda9

Please sign in to comment.