Add toThrowError test matcher (#11171)

Add `toThrowError` test docs.

See Jest Docs [toThrowError](https://facebook.github.io/jest/docs/api.html#tothrowerror-error).
This commit is contained in:
ShMcK
2016-09-14 21:13:51 +09:00
committed by Masahiro Wakame
parent 6f4b149a52
commit 0a51f69a36
+1
View File
@@ -44,6 +44,7 @@ declare namespace jest {
interface Matchers {
not: Matchers;
toThrow(expected?: any): boolean;
toThrowError(expected?: any): boolean;
toBe(expected: any): boolean;
toEqual(expected: any): boolean;
toBeFalsy(): boolean;