Updating NPM dependencies

This commit is contained in:
Drew Heavner
2020-11-11 13:30:52 +00:00
committed by GitHub
parent 7a6fb66c63
commit bd487ef324
9068 changed files with 1400893 additions and 587661 deletions

View File

@@ -5,38 +5,6 @@ Object.defineProperty(exports, '__esModule', {
});
exports.default = void 0;
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
try {
var info = gen[key](arg);
var value = info.value;
} catch (error) {
reject(error);
return;
}
if (info.done) {
resolve(value);
} else {
Promise.resolve(value).then(_next, _throw);
}
}
function _asyncToGenerator(fn) {
return function() {
var self = this,
args = arguments;
return new Promise(function(resolve, reject) {
var gen = fn.apply(self, args);
function _next(value) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'next', value);
}
function _throw(err) {
asyncGeneratorStep(gen, resolve, reject, _next, _throw, 'throw', err);
}
_next(undefined);
});
};
}
function _defineProperty(obj, key, value) {
if (key in obj) {
Object.defineProperty(obj, key, {
@@ -59,8 +27,6 @@ function _defineProperty(obj, key, value) {
*/
class JestHooks {
constructor() {
var _this = this;
_defineProperty(this, '_listeners', void 0);
_defineProperty(this, '_subscriber', void 0);
@@ -90,27 +56,26 @@ class JestHooks {
this._listeners.onTestRunComplete.forEach(listener =>
listener(results)
),
shouldRunTestSuite: (function() {
var _shouldRunTestSuite = _asyncToGenerator(function*(testSuiteInfo) {
const result = yield Promise.all(
_this._listeners.shouldRunTestSuite.map(listener =>
listener(testSuiteInfo)
)
);
return result.every(Boolean);
});
function shouldRunTestSuite(_x) {
return _shouldRunTestSuite.apply(this, arguments);
}
return shouldRunTestSuite;
})()
shouldRunTestSuite: async testSuiteInfo => {
const result = await Promise.all(
this._listeners.shouldRunTestSuite.map(listener =>
listener(testSuiteInfo)
)
);
return result.every(Boolean);
}
};
}
isUsed(hook) {
return this._listeners[hook] && this._listeners[hook].length;
var _this$_listeners$hook;
return (
((_this$_listeners$hook = this._listeners[hook]) === null ||
_this$_listeners$hook === void 0
? void 0
: _this$_listeners$hook.length) > 0
);
}
getSubscriber() {