Skip to content

Commit

Permalink
fix(testing): fix outputs for vitest generator (#18709)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenPandaz authored Aug 21, 2023
1 parent b309d83 commit 7900d56
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

1 comment on commit 7900d56

@vercel
Copy link

@vercel vercel bot commented on 7900d56 Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

nx-dev – ./

nx-dev-nrwl.vercel.app
nx.dev
nx-dev-git-master-nrwl.vercel.app
nx-five.vercel.app

Please sign in to comment.