Skip to content

Commit b4ac294

Browse files
committedAug 21, 2023
fix(testing): fix outputs for vitest generator (#18709)
(cherry picked from commit 7900d56)
1 parent f044882 commit b4ac294

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎packages/vite/src/generators/vitest/vitest.spec.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ describe('vitest generator', () => {
5959
"reportsDirectory": "../../coverage/apps/my-test-react-app",
6060
},
6161
"outputs": [
62-
"coverage/apps/my-test-react-app",
62+
"{options.reportsDirectory}",
6363
],
6464
}
6565
`);

‎packages/vite/src/utils/generator-utils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function addOrChangeTestTarget(
191191
} else {
192192
project.targets[target] = {
193193
executor: '@nx/vite:test',
194-
outputs: [coveragePath],
194+
outputs: ['{options.reportsDirectory}'],
195195
options: testOptions,
196196
};
197197
}

0 commit comments

Comments
 (0)
Please sign in to comment.