From 2d4fda99a39026a092dd60bc5beaa767011f9abe Mon Sep 17 00:00:00 2001 From: kirillgroshkov Date: Thu, 14 Apr 2022 11:15:09 +0200 Subject: [PATCH] fix: skip adding --coverage if coverage arg already present --- src/util/jest.util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/jest.util.ts b/src/util/jest.util.ts index eec86be..9d46b70 100644 --- a/src/util/jest.util.ts +++ b/src/util/jest.util.ts @@ -80,7 +80,7 @@ export async function runJest(opt: RunJestOpt = {}): Promise { 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') }