@nx/playwright 20.0.0-beta.4 → 20.0.0-beta.6
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nx/playwright",
|
3
|
-
"version": "20.0.0-beta.
|
3
|
+
"version": "20.0.0-beta.6",
|
4
4
|
"type": "commonjs",
|
5
5
|
"homepage": "https://nx.dev",
|
6
6
|
"private": false,
|
@@ -35,11 +35,11 @@
|
|
35
35
|
},
|
36
36
|
"dependencies": {
|
37
37
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
38
|
-
"@nx/devkit": "20.0.0-beta.
|
39
|
-
"@nx/eslint": "20.0.0-beta.
|
40
|
-
"@nx/webpack": "20.0.0-beta.
|
41
|
-
"@nx/vite": "20.0.0-beta.
|
42
|
-
"@nx/js": "20.0.0-beta.
|
38
|
+
"@nx/devkit": "20.0.0-beta.6",
|
39
|
+
"@nx/eslint": "20.0.0-beta.6",
|
40
|
+
"@nx/webpack": "20.0.0-beta.6",
|
41
|
+
"@nx/vite": "20.0.0-beta.6",
|
42
|
+
"@nx/js": "20.0.0-beta.6",
|
43
43
|
"tslib": "^2.3.0",
|
44
44
|
"minimatch": "9.0.3"
|
45
45
|
},
|
@@ -1,8 +1,8 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
3
|
exports.playwrightExecutor = playwrightExecutor;
|
4
|
-
const child_process_1 = require("child_process");
|
5
4
|
const devkit_1 = require("@nx/devkit");
|
5
|
+
const child_process_1 = require("child_process");
|
6
6
|
async function playwrightExecutor(options, context) {
|
7
7
|
const projectRoot = context.projectGraph?.nodes?.[context?.projectName]?.data?.root;
|
8
8
|
if (!projectRoot) {
|
@@ -21,6 +21,10 @@
|
|
21
21
|
"type": "boolean",
|
22
22
|
"description": "Run tests with Playwright Inspector. Shortcut for 'PWDEBUG=1' environment variable and '--timeout=0',--max-failures=1 --headed --workers=1' options"
|
23
23
|
},
|
24
|
+
"lastFailed": {
|
25
|
+
"type": "boolean",
|
26
|
+
"description": "Run only the tests that failed in the last run"
|
27
|
+
},
|
24
28
|
"forbidOnly": {
|
25
29
|
"type": "boolean",
|
26
30
|
"description": "Fail if test.only is called"
|
@@ -4,6 +4,7 @@ exports.configurationGenerator = configurationGenerator;
|
|
4
4
|
exports.configurationGeneratorInternal = configurationGeneratorInternal;
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
6
6
|
const js_1 = require("@nx/js");
|
7
|
+
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
7
8
|
const versions_1 = require("@nx/js/src/utils/versions");
|
8
9
|
const child_process_1 = require("child_process");
|
9
10
|
const path = require("path");
|
@@ -14,6 +15,7 @@ function configurationGenerator(tree, options) {
|
|
14
15
|
return configurationGeneratorInternal(tree, { addPlugin: false, ...options });
|
15
16
|
}
|
16
17
|
async function configurationGeneratorInternal(tree, options) {
|
18
|
+
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'playwright', 'configuration');
|
17
19
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
18
20
|
options.addPlugin ??=
|
19
21
|
process.env.NX_ADD_PLUGINS !== 'false' &&
|
@@ -4,12 +4,14 @@ exports.initGenerator = initGenerator;
|
|
4
4
|
exports.initGeneratorInternal = initGeneratorInternal;
|
5
5
|
const devkit_1 = require("@nx/devkit");
|
6
6
|
const add_plugin_1 = require("@nx/devkit/src/utils/add-plugin");
|
7
|
+
const ts_solution_setup_1 = require("@nx/js/src/utils/typescript/ts-solution-setup");
|
7
8
|
const plugin_1 = require("../../plugins/plugin");
|
8
9
|
const versions_1 = require("../../utils/versions");
|
9
10
|
function initGenerator(tree, options) {
|
10
11
|
return initGeneratorInternal(tree, { addPlugin: false, ...options });
|
11
12
|
}
|
12
13
|
async function initGeneratorInternal(tree, options) {
|
14
|
+
(0, ts_solution_setup_1.assertNotUsingTsSolutionSetup)(tree, 'playwright', 'init');
|
13
15
|
const tasks = [];
|
14
16
|
const nxJson = (0, devkit_1.readNxJson)(tree);
|
15
17
|
const addPluginDefault = process.env.NX_ADD_PLUGINS !== 'false' &&
|