Also log exception in itSkipOnFail

This commit is contained in:
Daniel Imms 2021-12-14 08:15:54 -08:00
parent c29df4c2d5
commit 9c99eaa0b2

View file

@ -30,8 +30,8 @@ export function itSkipOnFail(title: string, callback: (this: Context) => any): v
it(title, function () {
return Promise.resolve().then(() => {
return callback.apply(this, arguments);
}).catch(() => {
console.warn(`Test "${title}" failed but was marks as skip on fail`);
}).catch(e => {
console.warn(`Test "${title}" failed but was marked as skip on fail:`, e);
this.skip();
});
});