fix(nuxt): correct webServerAddress and webServerCommand options in add-e2e.ts generator. (#29713)

## Current Behavior
Currently, the add-e2e.ts generator has redundant lines for the
webServerAddress and webServerCommand configuration when generating
Playwright configuration.
Produces `TypeError: Invalid URL` when running playwright tests on a
clean create-nx-workspace project.

## Expected Behavior
The generator should configure webServerAddress and webServerCommand
correctly. The changes fix the configuration generation for Playwright
tests.
This commit is contained in:
Maksym Polupan 2025-01-27 14:08:26 +01:00 committed by GitHub
parent 1f69dce067
commit 655342ba11
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -129,8 +129,8 @@ export async function addE2e(host: Tree, options: NormalizedSchema) {
js: false, js: false,
linter: options.linter, linter: options.linter,
setParserOptionsProject: options.setParserOptionsProject, setParserOptionsProject: options.setParserOptionsProject,
webServerAddress: e2eWebServerInfo.e2eCiWebServerCommand, webServerAddress: e2eWebServerInfo.e2eCiBaseUrl,
webServerCommand: e2eWebServerInfo.e2eCiBaseUrl, webServerCommand: e2eWebServerInfo.e2eCiWebServerCommand,
addPlugin: true, addPlugin: true,
}); });