Skip to content

Commit

Permalink
Make fail() to break the typescript's control flow (#312)
Browse files Browse the repository at this point in the history
xamgore authored Oct 11, 2021

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 61c92f8 commit c4961cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ declare namespace jest {
*
* @param {String} message
*/
fail(message: string): R;
fail(message: string): never;

/**
* Use .toBeEmpty when checking if a String '', Array [], Object {} or Iterable (i.e. Map, Set) is empty.

0 comments on commit c4961cd

Please sign in to comment.