[new-rule] recommend toThrow
matcher for testing against errors (via typechecking)
#802
Labels
toThrow
matcher for testing against errors (via typechecking)
#802
The documentation for
toEqual
says this:We should be able to use the typescript-powered type checking to determine if an
expect
value is an instance ofError
, and if so check if the matcher being used is.toThrow
.The text was updated successfully, but these errors were encountered: