@centreon/js-config 25.10.14 → 25.10.15
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
|
@@ -260,6 +260,15 @@ export default (on: Cypress.PluginEvents): void => {
|
|
|
260
260
|
console.error(error.message);
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
+
// Best-effort teardown: keep the original startup error if cleanup fails.
|
|
264
|
+
try {
|
|
265
|
+
await dockerEnvironment?.down();
|
|
266
|
+
} catch (teardownError) {
|
|
267
|
+
console.error(teardownError);
|
|
268
|
+
} finally {
|
|
269
|
+
dockerEnvironment = null;
|
|
270
|
+
}
|
|
271
|
+
|
|
263
272
|
throw error;
|
|
264
273
|
}
|
|
265
274
|
},
|
package/package.json
CHANGED