@nx/cypress 18.0.2 → 18.0.3
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/cypress",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.3",
|
|
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": "18.0.
|
|
38
|
-
"@nx/eslint": "18.0.
|
|
39
|
-
"@nx/js": "18.0.
|
|
37
|
+
"@nx/devkit": "18.0.3",
|
|
38
|
+
"@nx/eslint": "18.0.3",
|
|
39
|
+
"@nx/js": "18.0.3",
|
|
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": "18.0.
|
|
44
|
+
"@nrwl/cypress": "18.0.3"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"cypress": ">= 3 < 14"
|
|
@@ -5,7 +5,7 @@ const devkit_1 = require("@nx/devkit");
|
|
|
5
5
|
const path_1 = require("path");
|
|
6
6
|
const fs_1 = require("fs");
|
|
7
7
|
const preprocessor_vite_1 = require("../src/plugins/preprocessor-vite");
|
|
8
|
-
const
|
|
8
|
+
const constants_1 = require("../src/utils/constants");
|
|
9
9
|
const child_process_1 = require("child_process");
|
|
10
10
|
const http_1 = require("http");
|
|
11
11
|
const https_1 = require("https");
|
|
@@ -64,7 +64,7 @@ function nxE2EPreset(pathToConfig, options) {
|
|
|
64
64
|
supportFile: `${basePath}/support/e2e.{js,ts}`,
|
|
65
65
|
specPattern: `${basePath}/**/*.cy.{js,jsx,ts,tsx}`,
|
|
66
66
|
fixturesFolder: `${basePath}/fixtures`,
|
|
67
|
-
[
|
|
67
|
+
[constants_1.NX_PLUGIN_OPTIONS]: {
|
|
68
68
|
webServerCommand: options?.webServerCommands?.default,
|
|
69
69
|
webServerCommands: options?.webServerCommands,
|
|
70
70
|
ciWebServerCommand: options?.ciWebServerCommand,
|
package/src/plugins/plugin.js
CHANGED
|
@@ -9,7 +9,7 @@ const fs_1 = require("fs");
|
|
|
9
9
|
const workspace_context_1 = require("nx/src/utils/workspace-context");
|
|
10
10
|
const calculate_hash_for_create_nodes_1 = require("@nx/devkit/src/utils/calculate-hash-for-create-nodes");
|
|
11
11
|
const cache_directory_1 = require("nx/src/utils/cache-directory");
|
|
12
|
-
const
|
|
12
|
+
const constants_1 = require("../utils/constants");
|
|
13
13
|
const config_utils_1 = require("@nx/devkit/src/utils/config-utils");
|
|
14
14
|
const cachePath = (0, path_1.join)(cache_directory_1.projectGraphCacheDirectory, 'cypress.hash');
|
|
15
15
|
const targetsCache = (0, fs_1.existsSync)(cachePath) ? readTargetsCache() : {};
|
|
@@ -95,7 +95,7 @@ function getOutputs(projectRoot, cypressConfig, testingType) {
|
|
|
95
95
|
async function buildCypressTargets(configFilePath, projectRoot, options, context) {
|
|
96
96
|
const cypressConfig = await (0, config_utils_1.loadConfigFile)((0, path_1.join)(context.workspaceRoot, configFilePath));
|
|
97
97
|
const pluginPresetOptions = {
|
|
98
|
-
...cypressConfig.e2e?.[
|
|
98
|
+
...cypressConfig.e2e?.[constants_1.NX_PLUGIN_OPTIONS],
|
|
99
99
|
...cypressConfig.env,
|
|
100
100
|
...cypressConfig.e2e?.env,
|
|
101
101
|
};
|