@nx/cypress 16.4.0 → 16.5.0-beta.0

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/migrations.json CHANGED
@@ -59,12 +59,6 @@
59
59
  "version": "16.4.0-beta.10",
60
60
  "description": "Remove tsconfig.e2e.json and add settings to project tsconfig.json. tsConfigs executor option is now deprecated. The project level tsconfig.json file should be used instead.",
61
61
  "implementation": "./src/migrations/update-16-4-0/tsconfig-sourcemaps"
62
- },
63
- "update-16-4-0-warn-incompatible-angular-cypress": {
64
- "cli": "nx",
65
- "version": "16.4.0-beta.11",
66
- "description": "Cypress Component Testing is broken with Angular 16.1.0. Warn about it if the workspace has Angular >= 16.1.0 and Angular projects using Component Testing.",
67
- "implementation": "./src/migrations/update-16-4-0/warn-incompatible-angular-cypress"
68
62
  }
69
63
  },
70
64
  "packageJsonUpdates": {
@@ -79,6 +73,18 @@
79
73
  "alwaysAddToPackageJson": false
80
74
  }
81
75
  }
76
+ },
77
+ "16.5.0": {
78
+ "version": "16.5.0-beta.0",
79
+ "requires": {
80
+ "cypress": ">=12.0.0 <12.16.0"
81
+ },
82
+ "packages": {
83
+ "cypress": {
84
+ "version": "^12.16.0",
85
+ "alwaysAddToPackageJson": false
86
+ }
87
+ }
82
88
  }
83
89
  }
84
90
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/cypress",
3
- "version": "16.4.0",
3
+ "version": "16.5.0-beta.0",
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,10 +34,10 @@
34
34
  "migrations": "./migrations.json"
35
35
  },
36
36
  "dependencies": {
37
- "@nrwl/cypress": "16.4.0",
38
- "@nx/devkit": "16.4.0",
39
- "@nx/js": "16.4.0",
40
- "@nx/linter": "16.4.0",
37
+ "@nrwl/cypress": "16.5.0-beta.0",
38
+ "@nx/devkit": "16.5.0-beta.0",
39
+ "@nx/js": "16.5.0-beta.0",
40
+ "@nx/linter": "16.5.0-beta.0",
41
41
  "@phenomnomnominal/tsquery": "~5.0.1",
42
42
  "detect-port": "^1.5.1",
43
43
  "dotenv": "~10.0.0",
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "types": "./index.d.ts",
58
- "gitHead": "ae698a72748d9f33aa5395aeeaa7b7af436a1dc5"
58
+ "gitHead": "376d656cfc7f6390ff1cd6d9de348baf7bccbf33"
59
59
  }
@@ -2,7 +2,7 @@ export declare const nxVersion: any;
2
2
  export declare const eslintPluginCypressVersion = "^2.10.3";
3
3
  export declare const typesNodeVersion = "16.11.7";
4
4
  export declare const cypressViteDevServerVersion = "^2.2.1";
5
- export declare const cypressVersion = "^12.11.0";
5
+ export declare const cypressVersion = "^12.16.0";
6
6
  export declare const cypressWebpackVersion = "^2.0.0";
7
7
  export declare const webpackHttpPluginVersion = "^5.5.0";
8
8
  export declare const viteVersion = "^4.3.4";
@@ -5,7 +5,7 @@ exports.nxVersion = require('../../package.json').version;
5
5
  exports.eslintPluginCypressVersion = '^2.10.3';
6
6
  exports.typesNodeVersion = '16.11.7';
7
7
  exports.cypressViteDevServerVersion = '^2.2.1';
8
- exports.cypressVersion = '^12.11.0';
8
+ exports.cypressVersion = '^12.16.0';
9
9
  exports.cypressWebpackVersion = '^2.0.0';
10
10
  exports.webpackHttpPluginVersion = '^5.5.0';
11
11
  exports.viteVersion = '^4.3.4';
@@ -1,2 +0,0 @@
1
- import type { Tree } from '@nx/devkit';
2
- export default function (tree: Tree): Promise<void>;
@@ -1,56 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const tslib_1 = require("tslib");
4
- const devkit_1 = require("@nx/devkit");
5
- const executor_options_utils_1 = require("@nx/devkit/src/generators/executor-options-utils");
6
- const package_json_1 = require("nx/src/utils/package-json");
7
- const semver_1 = require("semver");
8
- function default_1(tree) {
9
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
10
- const angularVersion = getInstalledAngularVersion();
11
- if (!angularVersion || (0, semver_1.lt)(angularVersion, '16.1.0')) {
12
- return;
13
- }
14
- const angularProjects = yield getAngularProjects();
15
- if (!angularProjects.length) {
16
- return;
17
- }
18
- let skipChecking = false;
19
- (0, executor_options_utils_1.forEachExecutorOptions)(tree, '@nx/cypress:cypress', (options, projectName) => {
20
- if (skipChecking || !angularProjects.includes(projectName)) {
21
- return;
22
- }
23
- if (options.testingType === 'component') {
24
- skipChecking = true;
25
- devkit_1.logger.warn((0, devkit_1.stripIndents) `Some of your Angular projects are setup for Cypress Component testing.
26
- The current version of Cypress does not support component testing for Angular 16.1 so your tests may fail.
27
- If your component tests fail, here are some recommended next steps:
28
-
29
- - Revert these changes and update Nx without updating Angular ("nx migrate latest --interactive"). You can update Angular once the issue has been resolved
30
- - Keep these changes but temporarily disable the component tests until this issue is resolved
31
-
32
- Check https://github.com/nrwl/nx/issues/17720 for more details.
33
-
34
- `);
35
- }
36
- });
37
- });
38
- }
39
- exports.default = default_1;
40
- function getAngularProjects() {
41
- return tslib_1.__awaiter(this, void 0, void 0, function* () {
42
- const projectGraph = yield (0, devkit_1.createProjectGraphAsync)();
43
- return Object.entries(projectGraph.dependencies)
44
- .filter(([node, dep]) => dep.some(({ target }) => { var _a; return !((_a = projectGraph.externalNodes) === null || _a === void 0 ? void 0 : _a[node]) && target === 'npm:@angular/core'; }))
45
- .map(([projectName]) => projectName);
46
- });
47
- }
48
- function getInstalledAngularVersion() {
49
- try {
50
- const { packageJson: { version }, } = (0, package_json_1.readModulePackageJson)('@angular/core');
51
- return version;
52
- }
53
- catch (_a) {
54
- return null;
55
- }
56
- }