@nx/cypress 0.0.0-pr-29705-bc2a0dd → 0.0.0-pr-29408-73bb882
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": "0.0.0-pr-
|
|
3
|
+
"version": "0.0.0-pr-29408-73bb882",
|
|
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": {
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"migrations": "./migrations.json"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@nx/devkit": "0.0.0-pr-
|
|
40
|
-
"@nx/eslint": "0.0.0-pr-
|
|
41
|
-
"@nx/js": "0.0.0-pr-
|
|
39
|
+
"@nx/devkit": "0.0.0-pr-29408-73bb882",
|
|
40
|
+
"@nx/eslint": "0.0.0-pr-29408-73bb882",
|
|
41
|
+
"@nx/js": "0.0.0-pr-29408-73bb882",
|
|
42
42
|
"@phenomnomnominal/tsquery": "~5.0.1",
|
|
43
43
|
"detect-port": "^1.5.1",
|
|
44
44
|
"tslib": "^2.3.0"
|
|
@@ -13,14 +13,17 @@ async function cypressExecutor(options, context) {
|
|
|
13
13
|
// this is used by cypress component testing presets to build the executor contexts with the correct configuration options.
|
|
14
14
|
process.env.NX_CYPRESS_TARGET_CONFIGURATION = context.configurationName;
|
|
15
15
|
let success;
|
|
16
|
-
|
|
16
|
+
const generatorInstance = (0, start_dev_server_1.startDevServer)(options, context);
|
|
17
|
+
for await (const devServerValues of generatorInstance) {
|
|
17
18
|
try {
|
|
18
19
|
success = await runCypress(devServerValues.baseUrl, {
|
|
19
20
|
...options,
|
|
20
21
|
portLockFilePath: devServerValues.portLockFilePath,
|
|
21
22
|
});
|
|
22
|
-
if (!options.watch)
|
|
23
|
+
if (!options.watch) {
|
|
24
|
+
generatorInstance.return();
|
|
23
25
|
break;
|
|
26
|
+
}
|
|
24
27
|
}
|
|
25
28
|
catch (e) {
|
|
26
29
|
devkit_1.logger.error(e.message);
|