@cypress/vite-dev-server 5.0.1 → 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 +1 -1
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
|
};
|