react/scripts
Brian Vaughn a637084320
DevTools: Add Jest snapshot serializer for number formatting (#23139)
Numbers in JavaScript can have precision issues due to how they are encoded. This shows up in snapshot tests sometimes with values like 0.0009999999999999992, which makes the tests hard to read and visually diff.

This PR adds a new snapshot serializers which clamps numbers at 3 decimal points (e.g. the above number 0.0009999999999999992 is serialized as 0.001). This new serializer does not impact non-numeric values, integers, and special numbers like NaN and Infinity.
2022-01-20 15:52:17 -05:00
..
babel Add comment support to `@gate` pragma (#21881) 2021-07-14 10:36:24 -07:00
bench Bump ecstatic from 2.2.1 to 2.2.2 in /scripts/bench (#20468) 2021-06-29 16:53:31 -04:00
circleci Console message fixed for devtools (#23067) 2022-01-05 11:45:45 -05:00
devtools Console message fixed for devtools (#23067) 2022-01-05 11:45:45 -05:00
error-codes Throw on hydration mismatch and force client rendering if boundary hasn't suspended within concurrent root (#22629) 2021-11-09 13:40:50 -05:00
eslint Migrate from CLIEngine to the new ESLint class. (#22756) 2021-11-18 21:12:18 +00:00
eslint-rules Remove unused react-internal/invariant-args ESLint rule. (#22778) 2021-11-16 20:11:20 +00:00
flow Console message fixed for devtools (#23067) 2022-01-05 11:45:45 -05:00
git Remove leftover env variable logic in pre-commit hook 2015-09-01 14:35:47 -07:00
jest DevTools: Add Jest snapshot serializer for number formatting (#23139) 2022-01-20 15:52:17 -05:00
merge-fork Improve DEV errors if string coercion throws (Temporal.*, Symbol, etc.) (#22064) 2021-09-27 10:05:07 -07:00
perf-counters Drop the year from Facebook copyright headers and the LICENSE file. (#13593) 2018-09-07 15:11:23 -07:00
prettier DevTools: Update named hooks match to use column number also (#21833) 2021-07-08 16:12:22 -04:00
print-warnings [RFC] Codemod invariant -> throw new Error (#22435) 2021-09-30 12:01:28 -07:00
release Add --no-show-signature to "git show" commands (#23038) 2022-01-11 12:14:08 -05:00
rollup Add RN_FB bundles for react-is (#23101) 2022-01-12 21:53:50 +00:00
shared Upgrade useSyncExternalStore to alpha channel (#22662) 2021-10-31 15:38:03 -07:00
tasks Migrate from CLIEngine to the new ESLint class. (#22756) 2021-11-18 21:12:18 +00:00
yarn chore: upgrade to jest 24 (#15778) 2019-10-03 22:44:18 +05:30
authors AUTHORS 2013-09-09 23:42:54 -07:00