@nx/cypress 17.3.1 → 17.3.2

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.3.1",
3
+ "version": "17.3.2",
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,14 +34,14 @@
34
34
  "migrations": "./migrations.json"
35
35
  },
36
36
  "dependencies": {
37
- "@nx/devkit": "17.3.1",
38
- "@nx/eslint": "17.3.1",
39
- "@nx/js": "17.3.1",
37
+ "@nx/devkit": "17.3.2",
38
+ "@nx/eslint": "17.3.2",
39
+ "@nx/js": "17.3.2",
40
40
  "@phenomnomnominal/tsquery": "~5.0.1",
41
41
  "detect-port": "^1.5.1",
42
- "semver": "7.5.3",
42
+ "semver": "^7.5.3",
43
43
  "tslib": "^2.3.0",
44
- "@nrwl/cypress": "17.3.1"
44
+ "@nrwl/cypress": "17.3.2"
45
45
  },
46
46
  "peerDependencies": {
47
47
  "cypress": ">= 3 < 14"
@@ -61,7 +61,7 @@ function nxE2EPreset(pathToConfig, options) {
61
61
  }*/ = {
62
62
  ...nxBaseCypressPreset(pathToConfig),
63
63
  fileServerFolder: '.',
64
- supportFile: `${basePath}/support/e2e.ts`,
64
+ supportFile: `${basePath}/support/e2e.{js,ts}`,
65
65
  specPattern: `${basePath}/**/*.cy.{js,jsx,ts,tsx}`,
66
66
  fixturesFolder: `${basePath}/fixtures`,
67
67
  [symbols_1.NX_PLUGIN_OPTIONS]: {
@@ -158,7 +158,9 @@ function addTarget(tree, opts) {
158
158
  projectConfig.targets.e2e = {
159
159
  executor: '@nx/cypress:cypress',
160
160
  options: {
161
- cypressConfig: (0, devkit_1.joinPathFragments)(projectConfig.root, cyVersion && cyVersion < 10 ? 'cypress.json' : 'cypress.config.ts'),
161
+ cypressConfig: (0, devkit_1.joinPathFragments)(projectConfig.root, cyVersion && cyVersion < 10
162
+ ? 'cypress.json'
163
+ : `cypress.config.${opts.js ? 'js' : 'ts'}`),
162
164
  testingType: 'e2e',
163
165
  },
164
166
  };