dillon1000/react
Commit
Browse files 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]>
Changed paths2 files
First-parent comparisonpackages/internal-test-utils/__tests__/ReactInternalTestUtils-test.js ModifiedM packages/internal-test-utils/consoleMock.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…