Skip to content

Commit

Permalink
fix(testing): fix outputs for vitest generator (#18709)
Browse files Browse the repository at this point in the history
(cherry picked from commit 7900d56)
  • Loading branch information
FrozenPandaz committed Aug 21, 2023
1 parent f044882 commit b4ac294
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/vite/src/generators/vitest/vitest.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ describe('vitest generator', () => {
"reportsDirectory": "../../coverage/apps/my-test-react-app",
},
"outputs": [
"coverage/apps/my-test-react-app",
"{options.reportsDirectory}",
],
}
`);
Expand Down
2 changes: 1 addition & 1 deletion packages/vite/src/utils/generator-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ export function addOrChangeTestTarget(
} else {
project.targets[target] = {
executor: '@nx/vite:test',
outputs: [coveragePath],
outputs: ['{options.reportsDirectory}'],
options: testOptions,
};
}
Expand Down

0 comments on commit b4ac294

Please # to comment.