revert MockResult definition

This commit is contained in:
antoinebrault
2018-12-05 21:28:24 -05:00
parent 5b6edfa8ef
commit 3fdb22ed85
+6 -2
View File
@@ -947,9 +947,13 @@ declare namespace jest {
* Represents the result of a single call to a mock function.
*/
interface MockResult {
type: 'return' | 'throw' | 'incomplete';
/**
* The value that was either thrown or returned by the function, or undefined if type = 'incomplete'
* True if the function threw.
* False if the function returned.
*/
isThrow: boolean;
/**
* The value that was either thrown or returned by the function.
*/
value: any;
}