@cypress/vite-dev-server 5.0.0 → 5.0.2
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/dist/plugins/cypress.js +3 -3
- package/package.json +2 -2
package/dist/plugins/cypress.js
CHANGED
|
@@ -88,7 +88,7 @@ const Cypress = (options, vite) => {
|
|
|
88
88
|
while (moduleImporters === null || moduleImporters === void 0 ? void 0 : moduleImporters.size) {
|
|
89
89
|
if (iterationNumber > HMR_DEPENDENCY_LOOKUP_MAX_ITERATION) {
|
|
90
90
|
debug(`max hmr iteration reached: ${HMR_DEPENDENCY_LOOKUP_MAX_ITERATION}; Rerun will not happen on this file change.`);
|
|
91
|
-
return
|
|
91
|
+
return;
|
|
92
92
|
}
|
|
93
93
|
// as soon as we find one of the specs, we trigger the re-run of tests
|
|
94
94
|
for (const mod of moduleImporters.values()) {
|
|
@@ -98,7 +98,7 @@ const Cypress = (options, vite) => {
|
|
|
98
98
|
devServerEvents.emit('dev-server:compile:success');
|
|
99
99
|
// if we update support we know we have to re-run it all
|
|
100
100
|
// no need to check further
|
|
101
|
-
return
|
|
101
|
+
return;
|
|
102
102
|
}
|
|
103
103
|
if (mod.file && specsPathsSet.has(mod.file)) {
|
|
104
104
|
debug('handleHotUpdate - spec compile success', mod.file);
|
|
@@ -112,7 +112,7 @@ const Cypress = (options, vite) => {
|
|
|
112
112
|
moduleImporters = getImporters(moduleImporters, exploredFiles);
|
|
113
113
|
iterationNumber += 1;
|
|
114
114
|
}
|
|
115
|
-
return
|
|
115
|
+
return;
|
|
116
116
|
},
|
|
117
117
|
};
|
|
118
118
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cypress/vite-dev-server",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Launches Vite Dev Server for Component Testing",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"build-prod": "tsc || echo 'built, with type errors'",
|
|
9
9
|
"check-ts": "tsc --noEmit",
|
|
10
10
|
"cypress:run": "yarn cypress:run-cypress-in-cypress node ../../scripts/cypress run --project . --browser chrome",
|
|
11
|
-
"cypress:run-cypress-in-cypress": "cross-env HTTP_PROXY_TARGET_FOR_ORIGIN_REQUESTS=http://localhost:4455 CYPRESS_REMOTE_DEBUGGING_PORT=6666 TZ=America/New_York",
|
|
11
|
+
"cypress:run-cypress-in-cypress": "cross-env CYPRESS_INTERNAL_E2E_TESTING_SELF_PARENT_PROJECT=1 HTTP_PROXY_TARGET_FOR_ORIGIN_REQUESTS=http://localhost:4455 CYPRESS_REMOTE_DEBUGGING_PORT=6666 TZ=America/New_York",
|
|
12
12
|
"cypress:open": "yarn cypress:run-cypress-in-cypress gulp open --project .",
|
|
13
13
|
"watch": "tsc -w",
|
|
14
14
|
"test": "yarn test-unit",
|