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) (#48430)
Summary: Pull Request resolved: #48430 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 fbshipit-source-id: 690f15971cec0e8a7b038eeacc9302c9f3edc323
- Loading branch information