dillon1000/react

Commit

[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.
Browse files
Changed paths1 file
First-parent comparison
M packages/internal-test-utils/ReactInternalTestUtils.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…