[Gradle, JS] Return result of testing function
- It is useful for async testing (Promise returning)
This commit is contained in:
@@ -55,7 +55,7 @@ export function runWithTeamCityConsoleAdapter(
|
|||||||
return () => globalConsole[method] = realMethod
|
return () => globalConsole[method] = realMethod
|
||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
fn();
|
return fn();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
throw e;
|
throw e;
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user