@nx/cypress 17.2.0-beta.6 → 17.2.0-beta.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/cypress",
3
- "version": "17.2.0-beta.6",
3
+ "version": "17.2.0-beta.8",
4
4
  "private": false,
5
5
  "description": "The Nx Plugin for Cypress contains executors and generators allowing your workspace to use the powerful Cypress integration testing capabilities.",
6
6
  "repository": {
@@ -34,15 +34,14 @@
34
34
  "migrations": "./migrations.json"
35
35
  },
36
36
  "dependencies": {
37
- "@nx/devkit": "17.2.0-beta.6",
38
- "@nx/eslint": "17.2.0-beta.6",
39
- "@nx/js": "17.2.0-beta.6",
37
+ "@nx/devkit": "17.2.0-beta.8",
38
+ "@nx/eslint": "17.2.0-beta.8",
39
+ "@nx/js": "17.2.0-beta.8",
40
40
  "@phenomnomnominal/tsquery": "~5.0.1",
41
41
  "detect-port": "^1.5.1",
42
- "string-argv": "^0.3.2",
43
42
  "semver": "7.5.3",
44
43
  "tslib": "^2.3.0",
45
- "@nrwl/cypress": "17.2.0-beta.6"
44
+ "@nrwl/cypress": "17.2.0-beta.8"
46
45
  },
47
46
  "peerDependencies": {
48
47
  "cypress": ">= 3 < 14"
@@ -62,6 +62,7 @@ function nxE2EPreset(pathToConfig, options) {
62
62
  specPattern: `${basePath}/**/*.cy.{js,jsx,ts,tsx}`,
63
63
  fixturesFolder: `${basePath}/fixtures`,
64
64
  env: {
65
+ webServerCommand: options?.webServerCommands?.default,
65
66
  webServerCommands: options?.webServerCommands,
66
67
  ciWebServerCommand: options?.ciWebServerCommand,
67
68
  },
@@ -148,13 +148,7 @@ function addTarget(tree, opts) {
148
148
  testingType: 'e2e',
149
149
  },
150
150
  };
151
- if (opts.baseUrl) {
152
- projectConfig.targets.e2e.options = {
153
- ...projectConfig.targets.e2e.options,
154
- baseUrl: opts.baseUrl,
155
- };
156
- }
157
- else if (opts.devServerTarget) {
151
+ if (opts.devServerTarget) {
158
152
  const parsedTarget = (0, devkit_1.parseTargetString)(opts.devServerTarget);
159
153
  projectConfig.targets.e2e.options = {
160
154
  ...projectConfig.targets.e2e.options,
@@ -178,6 +172,12 @@ function addTarget(tree, opts) {
178
172
  };
179
173
  }
180
174
  }
175
+ else if (opts.baseUrl) {
176
+ projectConfig.targets.e2e.options = {
177
+ ...projectConfig.targets.e2e.options,
178
+ baseUrl: opts.baseUrl,
179
+ };
180
+ }
181
181
  (0, devkit_1.updateProjectConfiguration)(tree, opts.project, projectConfig);
182
182
  }
183
183
  exports.default = configurationGenerator;
@@ -120,8 +120,6 @@ function buildCypressTargets(configFilePath, projectRoot, options, context) {
120
120
  targets[options.targetName].outputs = getOutputs(projectRoot, cypressConfig, 'e2e');
121
121
  }
122
122
  if (webServerCommands?.default) {
123
- cypressConfig.e2e ??= {};
124
- cypressConfig.e2e.webServerCommand ??= webServerCommands?.default;
125
123
  delete webServerCommands.default;
126
124
  }
127
125
  if (Object.keys(webServerCommands ?? {}).length > 0) {
@@ -20,9 +20,6 @@ async function addLinterToCyProject(tree, options) {
20
20
  linter: options.linter,
21
21
  skipFormat: true,
22
22
  tsConfigPaths: [(0, devkit_1.joinPathFragments)(projectConfig.root, 'tsconfig.json')],
23
- eslintFilePatterns: [
24
- `${projectConfig.root}/**/*.${options.js ? 'js' : '{js,ts}'}`,
25
- ],
26
23
  setParserOptionsProject: options.setParserOptionsProject,
27
24
  skipPackageJson: options.skipPackageJson,
28
25
  rootProject: options.rootProject,