@nx/cypress 17.2.5 → 17.2.7

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/README.md CHANGED
@@ -1,9 +1,4 @@
1
- <p style="text-align: center;">
2
- <picture>
3
- <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-dark.svg">
4
- <img alt="Nx - Smart Monorepos · Fast CI" src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-light.svg" width="100%">
5
- </picture>
6
- </p>
1
+ <p style="text-align: center;"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx.png" width="600" alt="Nx - Smart, Fast and Extensible Build System"></p>
7
2
 
8
3
  <div style="text-align: center;">
9
4
 
@@ -20,9 +15,9 @@
20
15
 
21
16
  <hr>
22
17
 
23
- # Nx: Smart Monorepos · Fast CI
18
+ # Nx: Smart, Fast and Extensible Build System
24
19
 
25
- Nx is a build system with built-in tooling and advanced CI capabilities. It helps you maintain and scale monorepos, both locally and on CI.
20
+ Nx is a next generation build system with first class monorepo support and powerful integrations.
26
21
 
27
22
  This package is a [Cypress plugin for Nx](https://nx.dev/cypress/overview).
28
23
 
@@ -64,5 +59,5 @@ npx nx@latest init
64
59
  - [Blog Posts About Nx](https://blog.nrwl.io/nx/home)
65
60
 
66
61
  <p style="text-align: center;"><a href="https://nx.dev/#learning-materials" target="_blank" rel="noreferrer"><img src="https://raw.githubusercontent.com/nrwl/nx/master/images/nx-courses-and-videos.svg"
67
- width="100%" alt="Nx - Smart Monorepos · Fast CI"></a></p>
62
+ width="100%" alt="Nx - Smart, Fast and Extensible Build System"></a></p>
68
63
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nx/cypress",
3
- "version": "v17.2.5",
3
+ "version": "17.2.7",
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": "v17.2.5",
38
- "@nx/eslint": "v17.2.5",
39
- "@nx/js": "v17.2.5",
37
+ "@nx/devkit": "17.2.7",
38
+ "@nx/eslint": "17.2.7",
39
+ "@nx/js": "17.2.7",
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": "v17.2.5"
44
+ "@nrwl/cypress": "17.2.7"
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
- "type": "string",
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;
@@ -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
  }