Skip to content

Commit 914b146

Browse files
committed
Merge branch 'main' into tools/custom-eslint-formatter
# Conflicts: # project.json
2 parents 3d306da + e76011b commit 914b146

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

code-pushup.preset.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -199,16 +199,10 @@ export const coverageCoreConfigNx = async (
199199
projectName?: string,
200200
): Promise<CoreConfig> => {
201201
const targetNames = ['unit-test', 'int-test'];
202-
const targetArgs = ['-t', ...targetNames];
203202
return {
204203
plugins: [
205204
await coveragePlugin({
206-
coverageToolCommand: {
207-
command: 'npx',
208-
args: projectName
209-
? ['nx', 'run-many', '-p', projectName, ...targetArgs]
210-
: ['nx', 'run-many', ...targetArgs],
211-
},
205+
// We do not need to run a coverageToolCommand. This is handled over the Nx task graph.
212206
reports: projectName
213207
? [
214208
{

project.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@
44
"targets": {
55
"code-pushup-js-packages": {},
66
"code-pushup-lighthouse": {},
7-
"code-pushup-coverage": {},
7+
"code-pushup-coverage": {
8+
"dependsOn": [
9+
{
10+
"target": "unit-test",
11+
"projects": "*"
12+
},
13+
{
14+
"target": "int-test",
15+
"projects": "*"
16+
}
17+
]
18+
},
819
"code-pushup-eslint": {
920
"dependsOn": [
1021
{

0 commit comments

Comments
 (0)