datagrok-tools 4.7.5 → 4.7.6
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/bin/commands/test.js +2 -0
- package/bin/utils/test-utils.js +6 -0
- package/package.json +1 -1
package/bin/commands/test.js
CHANGED
|
@@ -264,8 +264,10 @@ function test(args) {
|
|
|
264
264
|
if (r.failed) {
|
|
265
265
|
console.log(r.failReport);
|
|
266
266
|
color.fail('Tests failed.');
|
|
267
|
+
testUtils.exitWithCode(1);
|
|
267
268
|
} else {
|
|
268
269
|
color.success('Tests passed.');
|
|
270
|
+
testUtils.exitWithCode(0);
|
|
269
271
|
} //@ts-ignore
|
|
270
272
|
|
|
271
273
|
|
package/bin/utils/test-utils.js
CHANGED
|
@@ -8,6 +8,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
8
8
|
value: true
|
|
9
9
|
});
|
|
10
10
|
exports.defaultLaunchParameters = void 0;
|
|
11
|
+
exports.exitWithCode = exitWithCode;
|
|
11
12
|
exports.getBrowserPage = getBrowserPage;
|
|
12
13
|
exports.getDevKey = getDevKey;
|
|
13
14
|
exports.getToken = getToken;
|
|
@@ -285,4 +286,9 @@ function runWithTimeout(timeout, f) {
|
|
|
285
286
|
return _ref.apply(this, arguments);
|
|
286
287
|
};
|
|
287
288
|
}());
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
function exitWithCode(code) {
|
|
292
|
+
console.log("Exiting with code ".concat(code));
|
|
293
|
+
process.exit(code);
|
|
288
294
|
}
|
package/package.json
CHANGED