@ -2204,6 +2204,10 @@ function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.itera
varbuildTestQueue=require('./buildTestQueue');
varbuildTestQueue=require('./buildTestQueue');
vargetError=functiongetError(E){
returnE.error.stack||E.error;
};
varfindSkip=functionfindSkip(skip,unit){
varfindSkip=functionfindSkip(skip,unit){
varstartFailed=skip.findIndex(function(x){
varstartFailed=skip.findIndex(function(x){
returnx.type==='@start';
returnx.type==='@start';
@ -2214,7 +2218,7 @@ function _typeof2(obj) { if (typeof Symbol === "function" && typeof Symbol.itera
varbeforeFailed=skip.findIndex(function(x){
varbeforeFailed=skip.findIndex(function(x){
returnx.description===unit.description;
returnx.description===unit.description;
});
});
returnstartFailed!==-1&&'A start hook failed\n'+skip[startFailed].error||everyFailed!==-1&&'An every hook failed\n'+skip[everyFailed].error||beforeFailed!==-1&&'A before test hook failed\n'+skip[beforeFailed].error;
returnstartFailed!==-1&&'A start hook failed\n'+getError(skip[startFailed])||everyFailed!==-1&&'An every hook failed\n'+getError(skip[everyFailed].error)||beforeFailed!==-1&&'A before test hook failed\n'+getError(skip[beforeFailed]);
@ -32,6 +32,10 @@ var emitter = require('./emitter');
varbuildTestQueue=require('./buildTestQueue');
varbuildTestQueue=require('./buildTestQueue');
vargetError=functiongetError(E){
returnE.error.stack||E.error;
};
varfindSkip=functionfindSkip(skip,unit){
varfindSkip=functionfindSkip(skip,unit){
varstartFailed=skip.findIndex(function(x){
varstartFailed=skip.findIndex(function(x){
returnx.type==='@start';
returnx.type==='@start';
@ -42,7 +46,7 @@ var findSkip = function findSkip(skip, unit) {
varbeforeFailed=skip.findIndex(function(x){
varbeforeFailed=skip.findIndex(function(x){
returnx.description===unit.description;
returnx.description===unit.description;
});
});
returnstartFailed!==-1&&'A start hook failed\n'+skip[startFailed].error||everyFailed!==-1&&'An every hook failed\n'+skip[everyFailed].error||beforeFailed!==-1&&'A before test hook failed\n'+skip[beforeFailed].error;
returnstartFailed!==-1&&'A start hook failed\n'+getError(skip[startFailed])||everyFailed!==-1&&'An every hook failed\n'+getError(skip[everyFailed].error)||beforeFailed!==-1&&'A before test hook failed\n'+getError(skip[beforeFailed]);