@lambdatest/smartui-cli 4.1.20 → 4.1.21

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.
Files changed (2) hide show
  1. package/dist/index.cjs +4 -2
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1903,7 +1903,7 @@ var authExec_default = (ctx) => {
1903
1903
  };
1904
1904
 
1905
1905
  // package.json
1906
- var version = "4.1.20";
1906
+ var version = "4.1.21";
1907
1907
  var package_default = {
1908
1908
  name: "@lambdatest/smartui-cli",
1909
1909
  version,
@@ -2540,7 +2540,7 @@ var ctx_default = (options) => {
2540
2540
  }
2541
2541
  } catch (error) {
2542
2542
  console.log(`[smartui] Error: ${error.message}`);
2543
- process.exit();
2543
+ process.exit(1);
2544
2544
  }
2545
2545
  if (config.web) {
2546
2546
  webConfig = { browsers: config.web.browsers, viewports: [] };
@@ -4683,6 +4683,7 @@ command2.name("capture").description("Capture screenshots of static sites").argu
4683
4683
  }
4684
4684
  } catch (error) {
4685
4685
  ctx.log.error(`Invalid Web Static Config; ${error.message}`);
4686
+ process.exitCode = 1;
4686
4687
  return;
4687
4688
  }
4688
4689
  ctx.log.debug(ctx.config);
@@ -4710,6 +4711,7 @@ command2.name("capture").description("Capture screenshots of static sites").argu
4710
4711
  } catch (error) {
4711
4712
  console.log("\nRefer docs: https://www.lambdatest.com/support/docs/smart-visual-regression-testing/");
4712
4713
  process.exitCode = 1;
4714
+ throw new Error();
4713
4715
  }
4714
4716
  });
4715
4717
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lambdatest/smartui-cli",
3
- "version": "4.1.20",
3
+ "version": "4.1.21",
4
4
  "description": "A command line interface (CLI) to run SmartUI tests on LambdaTest",
5
5
  "files": [
6
6
  "dist/**/*"