@nx/playwright 24.0.6 → 24.1.0-beta.1
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.
|
@@ -378,7 +378,7 @@ function proxiedRequest(url, proxy, options, skipProxiedTls, signal, onResponse)
|
|
|
378
378
|
...options,
|
|
379
379
|
// Playwright before 1.59.0 never verifies the origin certificate on
|
|
380
380
|
// this route, whatever the caller asked for.
|
|
381
|
-
// TODO(v25): drop once minSupportedPlaywrightVersion reaches 1.59.0.
|
|
381
|
+
// TODO(v25): drop once minSupportedPlaywrightVersion reaches 1.59.0 (NXC-5153).
|
|
382
382
|
...(skipProxiedTls ? { rejectUnauthorized: false } : {}),
|
|
383
383
|
agent,
|
|
384
384
|
}, onResponse);
|
|
@@ -14,6 +14,12 @@ const npm_config_proxy_1 = require("../utils/npm-config-proxy");
|
|
|
14
14
|
const proxied_tls_verification_1 = require("../utils/proxied-tls-verification");
|
|
15
15
|
const reporters_1 = require("../utils/reporters");
|
|
16
16
|
const webserver_readiness_1 = require("./webserver-readiness");
|
|
17
|
+
const node_module_1 = require("node:module");
|
|
18
|
+
// Node passes a stand-in require, without a cache, require.extensions or
|
|
19
|
+
// Module._load, when an ESM loader hook supplies this module's source, as
|
|
20
|
+
// Yarn PnP does.
|
|
21
|
+
if (!require.cache)
|
|
22
|
+
require = (0, node_module_1.createRequire)(__filename);
|
|
17
23
|
const playwrightConfigGlob = '**/playwright.config.{js,ts,cjs,cts,mjs,mts}';
|
|
18
24
|
exports.createNodes = [
|
|
19
25
|
playwrightConfigGlob,
|
|
@@ -280,14 +286,14 @@ async function buildPlaywrightTargets(configFilePath, projectRoot, options, cont
|
|
|
280
286
|
}
|
|
281
287
|
const targetName = `${options.ciTargetName}--${relativeSpecFilePath}`;
|
|
282
288
|
ciTargetGroup.push(targetName);
|
|
283
|
-
targets[targetName] = {
|
|
284
|
-
...
|
|
289
|
+
targets[targetName] = (0, internal_1.applyTestFileDirectives)({
|
|
290
|
+
...ciBaseTargetConfig,
|
|
285
291
|
options: {
|
|
286
292
|
...ciBaseTargetConfig.options,
|
|
287
293
|
env: getAtomizedTaskEnvVars(reporterOutputs, outputSubfolder),
|
|
288
294
|
},
|
|
289
295
|
outputs: getAtomizedTaskOutputs(testOutput, reporterOutputs, context.workspaceRoot, projectRoot, outputSubfolder),
|
|
290
|
-
command: `${baseTargetConfig.command} ${relativeSpecFilePath} --output=${(0, devkit_1.joinPathFragments)(testOutput, outputSubfolder)}`,
|
|
296
|
+
command: `${baseTargetConfig.command} ${(0, internal_1.quoteShellArg)(relativeSpecFilePath)} --output=${(0, internal_1.quoteShellArg)((0, devkit_1.joinPathFragments)(testOutput, outputSubfolder))}`,
|
|
291
297
|
metadata: {
|
|
292
298
|
technologies: ['playwright'],
|
|
293
299
|
description: `Runs Playwright Tests in ${relativeSpecFilePath} in CI`,
|
|
@@ -300,7 +306,7 @@ async function buildPlaywrightTargets(configFilePath, projectRoot, options, cont
|
|
|
300
306
|
},
|
|
301
307
|
},
|
|
302
308
|
},
|
|
303
|
-
};
|
|
309
|
+
}, context.workspaceRoot, testFile, { ignoreServerInputs: true });
|
|
304
310
|
dependsOn.push({
|
|
305
311
|
target: targetName,
|
|
306
312
|
params: 'forward',
|
|
@@ -8,12 +8,12 @@ exports.minPlaywrightVersionForBlobReports = '1.37.0';
|
|
|
8
8
|
// Earlier versions never verify the origin certificate of an https url probed
|
|
9
9
|
// through a proxy tunnel, whatever the caller asked for.
|
|
10
10
|
// TODO(v25): drop with the unverified-tunnel branch once
|
|
11
|
-
// minSupportedPlaywrightVersion reaches 1.59.0.
|
|
11
|
+
// minSupportedPlaywrightVersion reaches 1.59.0 (NXC-5168).
|
|
12
12
|
exports.minPlaywrightVersionVerifyingProxiedTls = '1.59.0';
|
|
13
13
|
// Earlier versions bundle a `proxy-from-env` that also reads npm's
|
|
14
14
|
// `npm_config_*` proxy variables ahead of the standard ones.
|
|
15
15
|
// TODO(v25): drop with the npm_config_* proxy handling once
|
|
16
|
-
// minSupportedPlaywrightVersion reaches 1.59.0.
|
|
16
|
+
// minSupportedPlaywrightVersion reaches 1.59.0 (NXC-5168).
|
|
17
17
|
exports.minPlaywrightVersionIgnoringNpmConfigProxy = '1.59.0';
|
|
18
18
|
exports.playwrightVersion = '^1.37.0';
|
|
19
19
|
exports.eslintPluginPlaywrightVersion = '^1.6.2';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nx/playwright",
|
|
3
|
-
"version": "24.0.
|
|
3
|
+
"version": "24.1.0-beta.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"files": [
|
|
@@ -75,16 +75,16 @@
|
|
|
75
75
|
"supportsOptionalMigrations": true
|
|
76
76
|
},
|
|
77
77
|
"dependencies": {
|
|
78
|
-
"@nx/devkit": "24.0.
|
|
79
|
-
"@nx/eslint": "24.0.
|
|
80
|
-
"@nx/js": "24.0.
|
|
78
|
+
"@nx/devkit": "24.1.0-beta.1",
|
|
79
|
+
"@nx/eslint": "24.1.0-beta.1",
|
|
80
|
+
"@nx/js": "24.1.0-beta.1",
|
|
81
81
|
"https-proxy-agent": "^7.0.6",
|
|
82
82
|
"minimatch": "10.2.5",
|
|
83
83
|
"semver": "^7.6.3",
|
|
84
84
|
"tslib": "^2.3.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
|
-
"nx": "24.0.
|
|
87
|
+
"nx": "24.1.0-beta.1"
|
|
88
88
|
},
|
|
89
89
|
"peerDependencies": {
|
|
90
90
|
"@playwright/test": "^1.36.0"
|