@nx/cypress 17.2.6 → 17.2.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.
|
|
3
|
+
"version": "17.2.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,14 +34,14 @@
|
|
|
34
34
|
"migrations": "./migrations.json"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@nx/devkit": "17.2.
|
|
38
|
-
"@nx/eslint": "17.2.
|
|
39
|
-
"@nx/js": "17.2.
|
|
37
|
+
"@nx/devkit": "17.2.8",
|
|
38
|
+
"@nx/eslint": "17.2.8",
|
|
39
|
+
"@nx/js": "17.2.8",
|
|
40
40
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
41
41
|
"detect-port": "^1.5.1",
|
|
42
42
|
"semver": "7.5.3",
|
|
43
43
|
"tslib": "^2.3.0",
|
|
44
|
-
"@nrwl/cypress": "17.2.
|
|
44
|
+
"@nrwl/cypress": "17.2.8"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"cypress": ">= 3 < 14"
|
|
@@ -25,7 +25,7 @@ export interface CypressExecutorOptions extends Json {
|
|
|
25
25
|
copyFiles?: string;
|
|
26
26
|
ciBuildId?: string | number;
|
|
27
27
|
group?: string;
|
|
28
|
-
ignoreTestFiles?: string;
|
|
28
|
+
ignoreTestFiles?: string | string[];
|
|
29
29
|
reporter?: string;
|
|
30
30
|
reporterOptions?: string | Json;
|
|
31
31
|
skipServe?: boolean;
|
|
@@ -113,7 +113,17 @@
|
|
|
113
113
|
},
|
|
114
114
|
"ignoreTestFiles": {
|
|
115
115
|
"aliases": ["excludeSpecPattern"],
|
|
116
|
-
"
|
|
116
|
+
"oneOf": [
|
|
117
|
+
{
|
|
118
|
+
"type": "string"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "array",
|
|
122
|
+
"items": {
|
|
123
|
+
"type": "string"
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
],
|
|
117
127
|
"description": "A String or Array of glob patterns used to ignore test files that would otherwise be shown in your list of tests. Cypress uses minimatch with the options: `{dot: true, matchBase: true}`. We suggest using https://globster.xyz to test what files would match."
|
|
118
128
|
},
|
|
119
129
|
"reporter": {
|
|
@@ -11,6 +11,6 @@ export declare function getTempTailwindPath(context: ExecutorContext): string;
|
|
|
11
11
|
* Checks if the childProjectName is a descendent of the parentProjectName
|
|
12
12
|
* in the project graph
|
|
13
13
|
**/
|
|
14
|
-
export declare function isCtProjectUsingBuildProject(graph: ProjectGraph, parentProjectName: string, childProjectName: string): boolean;
|
|
14
|
+
export declare function isCtProjectUsingBuildProject(graph: ProjectGraph, parentProjectName: string, childProjectName: string, seen?: Set<string>): boolean;
|
|
15
15
|
export declare function getProjectConfigByPath(graph: ProjectGraph, configPath: string): ProjectConfiguration;
|
|
16
16
|
export declare function createExecutorContext(graph: ProjectGraph, targets: Record<string, TargetConfiguration>, projectName: string, targetName: string, configurationName: string): ExecutorContext;
|
package/src/utils/ct-helpers.js
CHANGED
|
@@ -30,14 +30,18 @@ exports.getTempTailwindPath = getTempTailwindPath;
|
|
|
30
30
|
* Checks if the childProjectName is a descendent of the parentProjectName
|
|
31
31
|
* in the project graph
|
|
32
32
|
**/
|
|
33
|
-
function isCtProjectUsingBuildProject(graph, parentProjectName, childProjectName) {
|
|
33
|
+
function isCtProjectUsingBuildProject(graph, parentProjectName, childProjectName, seen = new Set()) {
|
|
34
|
+
if (seen.has(parentProjectName)) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
seen.add(parentProjectName);
|
|
34
38
|
const isProjectDirectDep = graph.dependencies[parentProjectName].some((p) => p.target === childProjectName);
|
|
35
39
|
if (isProjectDirectDep) {
|
|
36
40
|
return true;
|
|
37
41
|
}
|
|
38
42
|
const maybeIntermediateProjects = graph.dependencies[parentProjectName].filter((p) => !graph.externalNodes[p.target]);
|
|
39
43
|
for (const maybeIntermediateProject of maybeIntermediateProjects) {
|
|
40
|
-
if (isCtProjectUsingBuildProject(graph, maybeIntermediateProject.target, childProjectName)) {
|
|
44
|
+
if (isCtProjectUsingBuildProject(graph, maybeIntermediateProject.target, childProjectName, seen)) {
|
|
41
45
|
return true;
|
|
42
46
|
}
|
|
43
47
|
}
|