Skip to content

Commit 34d861d

Browse files
committed
fix(testing): preserve the old coverage layout
1 parent 40b39b2 commit 34d861d

File tree

21 files changed

+25
-24
lines changed

21 files changed

+25
-24
lines changed

docs/shared/angular-standalone-tutorial/3-task-running.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Here's the `project.json` file for your `shared-ui` project:
4040
},
4141
"test": {
4242
"executor": "@nrwl/jest:jest",
43-
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
43+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
4444
"options": {
4545
"jestConfig": "shared/ui/jest.config.ts",
4646
"passWithNoTests": true

docs/shared/angular-standalone-tutorial/4-task-pipelines.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ Here are the outputs defined for the `shared-ui` project:
157157
},
158158
"test": {
159159
"executor": "@nrwl/jest:jest",
160-
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
160+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
161161
"options": {
162162
"jestConfig": "shared/ui/jest.config.ts",
163163
"passWithNoTests": true

docs/shared/angular-tutorial/3-task-running.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Here's the `project.json` file for your `common-ui` project:
2424
"targets": {
2525
"test": {
2626
"executor": "@nrwl/jest:jest",
27-
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
27+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
2828
"options": {
2929
"jestConfig": "libs/common-ui/jest.config.ts",
3030
"passWithNoTests": true

docs/shared/angular-tutorial/4-workspace-optimization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ Outputs are defined for every target in your workspace:
8989
},
9090
"test": {
9191
"executor": "@nrwl/jest:jest",
92-
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
92+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
9393
"options": {
9494
"jestConfig": "libs/products/jest.config.ts",
9595
"passWithNoTests": true

docs/shared/mental-model/large-tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14215,7 +14215,7 @@
1421514215
},
1421614216
"test": {
1421714217
"executor": "@nrwl/jest:jest",
14218-
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
14218+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
1421914219
"options": {
1422014220
"jestConfig": "graph/ui-graph/jest.config.ts",
1422114221
"passWithNoTests": true

e2e/nx-run/src/affected-graph.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ describe('Nx Affected and Graph Tests', () => {
331331
target: 'test',
332332
},
333333
command: `${runNx} run ${myapp}:test`,
334-
outputs: [`coverage/${myapp}`],
334+
outputs: [`coverage/apps/${myapp}`],
335335
});
336336
compareTwoArrays(resWithTarget.projects, [myapp]);
337337

graph/ui-graph/project.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
},
1515
"test": {
1616
"executor": "@nrwl/jest:jest",
17-
"outputs": ["{workspaceRoot}/coverage/{projectName}"],
17+
"outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
1818
"options": {
1919
"jestConfig": "graph/ui-graph/jest.config.ts",
2020
"passWithNoTests": true

packages/angular/src/generators/application/__snapshots__/application.spec.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Object {
214214
"passWithNoTests": true,
215215
},
216216
"outputs": Array [
217-
"{workspaceRoot}/coverage/{projectName}",
217+
"{workspaceRoot}/coverage/{projectRoot}",
218218
],
219219
},
220220
},
@@ -385,7 +385,7 @@ Object {
385385
"passWithNoTests": true,
386386
},
387387
"outputs": Array [
388-
"{workspaceRoot}/coverage/{projectName}",
388+
"{workspaceRoot}/coverage/{projectRoot}",
389389
],
390390
},
391391
},

packages/angular/src/generators/application/__snapshots__/application.v14.spec.ts.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ Object {
222222
"passWithNoTests": true,
223223
},
224224
"outputs": Array [
225-
"{workspaceRoot}/coverage/{projectName}",
225+
"{workspaceRoot}/coverage/{projectRoot}",
226226
],
227227
},
228228
},
@@ -393,7 +393,7 @@ Object {
393393
"passWithNoTests": true,
394394
},
395395
"outputs": Array [
396-
"{workspaceRoot}/coverage/{projectName}",
396+
"{workspaceRoot}/coverage/{projectRoot}",
397397
],
398398
},
399399
},

packages/jest/src/generators/jest-project/__snapshots__/jest-project.spec.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Object {
117117
"passWithNoTests": true,
118118
},
119119
"outputs": Array [
120-
"{workspaceRoot}/coverage/{projectName}",
120+
"{workspaceRoot}/coverage/{projectRoot}",
121121
],
122122
}
123123
`;

0 commit comments

Comments
 (0)