datagrok-tools 4.13.59 → 4.13.60
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/CHANGELOG.md +6 -0
- package/bin/commands/test.js +4 -1
- package/bin/utils/test-utils.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/bin/commands/test.js
CHANGED
|
@@ -68,7 +68,10 @@ function _test() {
|
|
|
68
68
|
res = _context.sent;
|
|
69
69
|
if (args.csv) (0, _testUtils.saveCsvResults)([res.csv], csvReportDir);
|
|
70
70
|
(0, _testUtils.printBrowsersResult)(res, args.verbose);
|
|
71
|
-
if (res.failed)
|
|
71
|
+
if (res.failed) {
|
|
72
|
+
if (res.verboseFailed === 'Package not found') testUtils.exitWithCode(0);
|
|
73
|
+
testUtils.exitWithCode(1);
|
|
74
|
+
} else testUtils.exitWithCode(0);
|
|
72
75
|
return _context.abrupt("return", true);
|
|
73
76
|
case 20:
|
|
74
77
|
case "end":
|
package/bin/utils/test-utils.js
CHANGED
|
@@ -599,7 +599,7 @@ function printBrowsersResult(browserResult) {
|
|
|
599
599
|
console.log("Skipped amount: " + (browserResult === null || browserResult === void 0 ? void 0 : browserResult.skippedAmount));
|
|
600
600
|
console.log("Failed amount: " + (browserResult === null || browserResult === void 0 ? void 0 : browserResult.failedAmount));
|
|
601
601
|
if (browserResult.failed) {
|
|
602
|
-
color.fail('Tests failed.');
|
|
602
|
+
if (browserResult.verboseFailed === 'Package not found') color.fail('Tests not found');else color.fail('Tests failed.');
|
|
603
603
|
} else {
|
|
604
604
|
color.success('Tests passed.');
|
|
605
605
|
}
|
package/package.json
CHANGED