dillon1000/react
Commit
Browse files [Tests] `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.
Changed paths1 file
First-parent comparisonpackages/internal-test-utils/ReactInternalTestUtils.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…