@centreon/js-config 26.7.4 → 26.7.5
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/cypress/e2e/tasks.ts +9 -0
- package/package.json +1 -1
package/cypress/e2e/tasks.ts
CHANGED
|
@@ -240,6 +240,15 @@ export default (on: Cypress.PluginEvents): void => {
|
|
|
240
240
|
} catch (error) {
|
|
241
241
|
console.error(error);
|
|
242
242
|
|
|
243
|
+
// Best-effort teardown: keep the original startup error if cleanup fails.
|
|
244
|
+
try {
|
|
245
|
+
await dockerEnvironment?.down();
|
|
246
|
+
} catch (teardownError) {
|
|
247
|
+
console.error(teardownError);
|
|
248
|
+
} finally {
|
|
249
|
+
dockerEnvironment = null;
|
|
250
|
+
}
|
|
251
|
+
|
|
243
252
|
throw error;
|
|
244
253
|
}
|
|
245
254
|
},
|