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