Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve error messages in expect().toThrow(message)
Summary: Changelog: [internal] This expectation currently prints a very generic message that is hard to parse, so this change improves it a bit to account for more cases. E.g.: * Before: "Expected <function> to throw" * After: "Expected <function> to throw with message 'foo', but threw with message 'bar'" Differential Revision: D67738146
- Loading branch information