dillon1000/react

Commit

console test utils fix: match entire string, not just first letter (#28855)

Fixes issue where if the first letter of the expected string appeared
anywhere in actual message, the assertion would pass, leading to false
negatives. We should check the entire expected string.

---------

Co-authored-by: Ricky <[email protected]>
Browse files
Changed paths2 files
First-parent comparison
M packages/internal-test-utils/__tests__/ReactInternalTestUtils-test.js ModifiedM packages/internal-test-utils/consoleMock.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…