Skip to content

Commit

Permalink
fix(core): not install cypress when e2e is playwright for react monor…
Browse files Browse the repository at this point in the history
…epo preset
  • Loading branch information
bcabanes authored and xiongemi committed Oct 25, 2024
1 parent 96f36d3 commit f0c9cd4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/workspace/src/generators/new/generate-preset.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,9 @@ function getPresetDependencies({
dependencies: {},
dev: {
'@nx/react': nxVersion,
'@nx/cypress': e2eTestRunner !== 'none' ? nxVersion : undefined,
'@nx/cypress': e2eTestRunner === 'cypress' ? nxVersion : undefined,
'@nx/playwright':
e2eTestRunner === 'playwright' ? nxVersion : undefined,
'@nx/jest': bundler !== 'vite' ? nxVersion : undefined,
'@nx/vite': bundler === 'vite' ? nxVersion : undefined,
'@nx/webpack': bundler === 'webpack' ? nxVersion : undefined,
Expand Down

0 comments on commit f0c9cd4

Please sign in to comment.