@nx/playwright 17.3.0-canary.20231221-2374d8e → 17.3.0-canary.20231223-cb09f25

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": "17.3.0-canary.20231221-2374d8e",
3
+ "version": "17.3.0-canary.20231223-cb09f25",
4
4
  "type": "commonjs",
5
5
  "homepage": "https://nx.dev",
6
6
  "private": false,
@@ -32,9 +32,9 @@
32
32
  "directory": "packages/playwright"
33
33
  },
34
34
  "dependencies": {
35
- "@nx/devkit": "17.3.0-canary.20231221-2374d8e",
36
- "@nx/eslint": "17.3.0-canary.20231221-2374d8e",
37
- "@nx/js": "17.3.0-canary.20231221-2374d8e",
35
+ "@nx/devkit": "17.3.0-canary.20231223-cb09f25",
36
+ "@nx/eslint": "17.3.0-canary.20231223-cb09f25",
37
+ "@nx/js": "17.3.0-canary.20231223-cb09f25",
38
38
  "tslib": "^2.3.0",
39
39
  "minimatch": "3.0.5"
40
40
  },
@@ -8,6 +8,7 @@ export interface PlaywrightExecutorSchema {
8
8
  grep?: string;
9
9
  globalTimeout?: number;
10
10
  grepInvert?: string;
11
+ testFiles?: string[];
11
12
  headed?: boolean;
12
13
  ignoreSnapshots?: boolean;
13
14
  workers?: string;
@@ -36,7 +36,11 @@ async function playwrightExecutor(options, context) {
36
36
  exports.playwrightExecutor = playwrightExecutor;
37
37
  function createArgs(opts, exclude = ['skipInstall']) {
38
38
  const args = [];
39
- for (const key in opts) {
39
+ const { testFiles, ...rest } = opts;
40
+ if (testFiles) {
41
+ args.push(...testFiles);
42
+ }
43
+ for (const key in rest) {
40
44
  if (exclude.includes(key))
41
45
  continue;
42
46
  const value = opts[key];
@@ -43,6 +43,14 @@
43
43
  "type": "string",
44
44
  "description": "Only run tests that do not match this regular expression"
45
45
  },
46
+ "testFiles": {
47
+ "alias": "t",
48
+ "type": "array",
49
+ "description": "Test files to run",
50
+ "items": {
51
+ "type": "string"
52
+ }
53
+ },
46
54
  "headed": {
47
55
  "type": "boolean",
48
56
  "description": "Run tests in headed browsers",