@nx/cypress 18.0.7 → 18.0.8
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.8",
|
|
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.8",
|
|
38
|
+
"@nx/eslint": "18.0.8",
|
|
39
|
+
"@nx/js": "18.0.8",
|
|
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.8"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"cypress": ">= 3 < 14"
|
|
@@ -39,9 +39,14 @@ function startWebServer(webServerCommand) {
|
|
|
39
39
|
stdio: 'inherit',
|
|
40
40
|
});
|
|
41
41
|
return () => {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
if (process.platform === 'win32') {
|
|
43
|
+
serverProcess.kill();
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
// child.kill() does not work on linux
|
|
47
|
+
// process.kill will kill the whole process group on unix
|
|
48
|
+
process.kill(-serverProcess.pid, 'SIGKILL');
|
|
49
|
+
}
|
|
45
50
|
};
|
|
46
51
|
}
|
|
47
52
|
/**
|
|
@@ -69,13 +69,13 @@ Rename or remove the existing e2e target.`);
|
|
|
69
69
|
}
|
|
70
70
|
if (!options.baseUrl &&
|
|
71
71
|
!options.devServerTarget &&
|
|
72
|
-
!projectConfig
|
|
72
|
+
!projectConfig?.targets?.serve) {
|
|
73
73
|
throw new Error(`The project ${options.project} does not have a 'serve' target.
|
|
74
74
|
In this case you need to provide a devServerTarget,'<projectName>:<targetName>[:<configName>]', or a baseUrl option`);
|
|
75
75
|
}
|
|
76
76
|
options.directory ??= 'src';
|
|
77
77
|
const devServerTarget = options.devServerTarget ??
|
|
78
|
-
(projectConfig
|
|
78
|
+
(projectConfig?.targets?.serve ? `${options.project}:serve` : undefined);
|
|
79
79
|
if (!options.baseUrl && !devServerTarget) {
|
|
80
80
|
throw new Error('Either baseUrl or devServerTarget must be provided');
|
|
81
81
|
}
|
package/src/utils/config.js
CHANGED
|
@@ -105,7 +105,7 @@ async function addMountDefinition(cmpCommandFileContents) {
|
|
|
105
105
|
exports.addMountDefinition = addMountDefinition;
|
|
106
106
|
function getProjectCypressConfigPath(tree, projectRoot) {
|
|
107
107
|
const cypressConfigPaths = (0, devkit_1.glob)(tree, [
|
|
108
|
-
|
|
108
|
+
(0, devkit_1.joinPathFragments)(projectRoot, exports.CYPRESS_CONFIG_FILE_NAME_PATTERN),
|
|
109
109
|
]);
|
|
110
110
|
if (cypressConfigPaths.length === 0) {
|
|
111
111
|
throw new Error(`Could not find a cypress config file in ${projectRoot}.`);
|