mirror of
https://github.com/facebook/react.git
synced 2025-11-01 09:12:30 +00:00
2ddab59e85ffab2ebde22e63480e38171a90d352
waitForThrow should diff strings (#26568)
Currently, `waitForThrow` tries to diff the expected value against the thrown value if it doesn't match. However if the expectation is a string, we are not diffing against the thrown message. This commit makes it so if we are matching against message we also diff against message. DiffTrain build for commit https://github.com/facebook/react/commit/657698e48d5b093b4ea5a7684e26d3fdd16695f2.
react-fbsource-import
Languages
JavaScript
67.1%
TypeScript
29.4%
HTML
1.5%
CSS
1.1%
C++
0.6%
Other
0.2%