@nx/playwright 19.4.0-canary.20240626-3a2e8d4 → 19.4.0-canary.20240628-336d371

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/playwright",
3
- "version": "19.4.0-canary.20240626-3a2e8d4",
3
+ "version": "19.4.0-canary.20240628-336d371",
4
4
  "type": "commonjs",
5
5
  "homepage": "https://nx.dev",
6
6
  "private": false,
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "dependencies": {
37
37
  "@phenomnomnominal/tsquery": "~5.0.1",
38
- "@nx/devkit": "19.4.0-canary.20240626-3a2e8d4",
39
- "@nx/eslint": "19.4.0-canary.20240626-3a2e8d4",
40
- "@nx/js": "19.4.0-canary.20240626-3a2e8d4",
38
+ "@nx/devkit": "19.4.0-canary.20240628-336d371",
39
+ "@nx/eslint": "19.4.0-canary.20240628-336d371",
40
+ "@nx/js": "19.4.0-canary.20240628-336d371",
41
41
  "tslib": "^2.3.0",
42
42
  "minimatch": "9.0.3"
43
43
  },
@@ -11,7 +11,7 @@ export interface PlaywrightExecutorSchema {
11
11
  testFiles?: string[];
12
12
  headed?: boolean;
13
13
  ignoreSnapshots?: boolean;
14
- workers?: string;
14
+ workers?: number | string;
15
15
  list?: boolean;
16
16
  maxFailures?: number | boolean;
17
17
  noDeps?: boolean;
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "workers": {
64
64
  "alias": "j",
65
- "type": "string",
65
+ "oneOf": [{ "type": "number" }, { "type": "string" }],
66
66
  "description": "Number of concurrent workers or percentage of logical CPU cores, use 1 to run in a single worker"
67
67
  },
68
68
  "list": {
@@ -12,6 +12,7 @@ const cache_directory_1 = require("nx/src/utils/cache-directory");
12
12
  const js_1 = require("@nx/js");
13
13
  const config_utils_1 = require("@nx/devkit/src/utils/config-utils");
14
14
  const file_hasher_1 = require("nx/src/hasher/file-hasher");
15
+ const pmc = (0, devkit_1.getPackageManagerCommand)();
15
16
  function readTargetsCache(cachePath) {
16
17
  return (0, fs_1.existsSync)(cachePath) ? (0, devkit_1.readJsonFile)(cachePath) : {};
17
18
  }
@@ -83,6 +84,14 @@ async function buildPlaywrightTargets(configFilePath, projectRoot, options, cont
83
84
  metadata: {
84
85
  technologies: ['playwright'],
85
86
  description: 'Runs Playwright Tests',
87
+ help: {
88
+ command: `${pmc.exec} playwright test --help`,
89
+ example: {
90
+ options: {
91
+ workers: 1,
92
+ },
93
+ },
94
+ },
86
95
  },
87
96
  };
88
97
  targets[options.targetName] = {
@@ -127,6 +136,14 @@ async function buildPlaywrightTargets(configFilePath, projectRoot, options, cont
127
136
  metadata: {
128
137
  technologies: ['playwright'],
129
138
  description: `Runs Playwright Tests in ${relativeSpecFilePath} in CI`,
139
+ help: {
140
+ command: `${pmc.exec} playwright test --help`,
141
+ example: {
142
+ options: {
143
+ workers: 1,
144
+ },
145
+ },
146
+ },
130
147
  },
131
148
  };
132
149
  dependsOn.push({
@@ -149,6 +166,15 @@ async function buildPlaywrightTargets(configFilePath, projectRoot, options, cont
149
166
  metadata: {
150
167
  technologies: ['playwright'],
151
168
  description: 'Runs Playwright Tests in CI',
169
+ nonAtomizedTarget: options.targetName,
170
+ help: {
171
+ command: `${pmc.exec} playwright test --help`,
172
+ example: {
173
+ options: {
174
+ workers: 1,
175
+ },
176
+ },
177
+ },
152
178
  },
153
179
  };
154
180
  ciTargetGroup.push(options.ciTargetName);