Skip to content

Commit b0df7cd

Browse files
author
John Doe
committed
chore: adjust preset
1 parent 82ad7fb commit b0df7cd

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

code-pushup.preset.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -251,13 +251,11 @@ export const coverageCoreConfigNx = async (
251251
: ['nx', 'run-many', ...targetArgs],
252252
},
253253
reports: projectName
254-
? [
255-
{
256-
pathToProject: `packages/${projectName}`,
257-
resultsPath: `packages/${projectName}/coverage/lcov.info`,
258-
},
259-
]
260-
: await getNxCoveragePaths(targetNames),
254+
? targetNames.map(target => ({
255+
pathToProject: `packages/${projectName}`,
256+
resultsPath: `coverage/${projectName}/${target}s/lcov.info`,
257+
}))
258+
: await getNxCoveragePaths({ targets: targetNames }),
261259
}),
262260
],
263261
categories: coverageCategories,

0 commit comments

Comments
 (0)