Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[skip ci] Improve error messages in expect().toThrow(message) (facebo…
…ok#48430) 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'" Reviewed By: rshest Differential Revision: D67738146
- Loading branch information