itemengine-cypress-automation 1.0.513-IEI-6793-v4-31b524b.0 → 1.0.513

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "itemengine-cypress-automation",
3
- "version": "1.0.513-IEI-6793-v4-31b524b.0",
3
+ "version": "1.0.513",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -315,5 +315,19 @@ export function runSorryCypressTest() {
315
315
  console.log('envArgs:', envArgs);
316
316
  let command = `cy2 run --parallel --browser chrome --record --key imaginelearning/itemengine-cypress-automation --ci-build-id ${ciBuildId} ${envArgs} --spec "cypress/e2e/ILC/test/**/*.js"`;
317
317
  console.log(`command: ${command}`);
318
- execSync(command, { stdio: "inherit" });
318
+ try {
319
+ execSync(command, { stdio: "inherit" });
320
+ } catch (error) {
321
+ console.error("One or more tests failed to pass, OR an error occurred during run");
322
+ console.error("Cypress run error details:", {
323
+ status: error.status,
324
+ message: error.message,
325
+ stack: error.stack
326
+ });
327
+
328
+ console.log("Exiting process with code: 1");
329
+ process.exit(1);
330
+ }
331
+ console.log("Cypress tests all passed successfully. Exiting process with code: 0");
332
+ process.exit(0);
319
333
  }