mirror of
https://github.com/zebrajr/react.git
synced 2026-01-15 12:15:22 +00:00
`toWarnDev` calls `jestDiff(a, b)` which calls `diffStrings(a, b)` where by default `a` is annotated as `'Expected'` (green), `b` as `'Received'` (red). So the first argument passed into `jestDiff` should be the expected message, the second should be the actual message. It was vice versa previously. -457776b288/packages/jest-diff/src/index.js (L54)-457776b288/packages/jest-diff/src/index.js (L93)-457776b288/packages/jest-diff/src/diff_strings.js (L249-L251)