mirror of
https://github.com/Microsoft/vscode
synced 2024-10-02 09:18:59 +00:00
Also log exception in itSkipOnFail
This commit is contained in:
parent
c29df4c2d5
commit
9c99eaa0b2
|
@ -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();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue