From 7220373b486bd84f8c5282a53e1672b53f6e09e0 Mon Sep 17 00:00:00 2001 From: Mark Stacey Date: Wed, 6 Sep 2023 22:33:42 -0230 Subject: [PATCH] chore: Update Jest to v29 Jest has been updated to v29, along with related dependencies. This change comes with a number of new features, such as the new `jest.replaceProperty()` function. The only breaking change affecting us is a change to the snapshot format. All snapshots have been updated. See here for the migration guide: https://jest-archive-august-2023.netlify.app/docs/upgrading-to-jest29/ See here for a full list of changes: https://github.com/jestjs/jest/blob/main/CHANGELOG.md#2900 --- .../ContractBoxBase.test.tsx.snap | 12 +- .../__snapshots__/CustomInput.test.tsx.snap | 12 +- .../CustomSpendCap.test.tsx.snap | 42 +- .../__snapshots__/Accordion.test.tsx.snap | 4 +- .../AccordionHeader.test.tsx.snap | 28 +- .../__snapshots__/AvatarBase.test.tsx.snap | 6 +- .../__snapshots__/AvatarFavicon.test.tsx.snap | 6 +- .../__snapshots__/AvatarIcon.test.tsx.snap | 2 +- .../__snapshots__/AvatarNetwork.test.tsx.snap | 6 +- .../__snapshots__/AvatarToken.test.tsx.snap | 6 +- .../__snapshots__/AvatarGroup.test.tsx.snap | 40 +- .../Badge/__snapshots__/Badge.test.tsx.snap | 2 +- .../__snapshots__/BadgeBase.test.tsx.snap | 2 +- .../__snapshots__/BadgeNetwork.test.tsx.snap | 10 +- .../__snapshots__/BadgeStatus.test.tsx.snap | 2 +- .../__snapshots__/BadgeWrapper.test.tsx.snap | 14 +- .../Banner/__snapshots__/Banner.test.tsx.snap | 62 +- .../__snapshots__/BannerAlert.test.tsx.snap | 4 +- .../__snapshots__/BannerTip.test.tsx.snap | 10 +- .../BottomSheetFooter.test.tsx.snap | 10 +- .../BottomSheetHeader.test.tsx.snap | 10 +- .../__snapshots__/ButtonBase.test.tsx.snap | 12 +- .../__snapshots__/ButtonLink.test.tsx.snap | 2 +- .../__snapshots__/ButtonPrimary.test.tsx.snap | 2 +- .../ButtonSecondary.test.tsx.snap | 2 +- .../__snapshots__/ButtonIcon.test.tsx.snap | 2 +- .../Card/__snapshots__/Card.test.tsx.snap | 2 +- .../Cell/__snapshots__/Cell.test.tsx.snap | 6 +- .../__snapshots__/CellBase.test.tsx.snap | 30 +- .../__snapshots__/CellDisplay.test.tsx.snap | 4 +- .../CellMultiSelect.test.tsx.snap | 12 +- .../__snapshots__/CellSelect.test.tsx.snap | 8 +- .../__snapshots__/Checkbox.test.tsx.snap | 2 +- .../__snapshots__/TextField.test.tsx.snap | 4 +- .../Input/__snapshots__/Input.test.tsx.snap | 2 +- .../Header/__snapshots__/Header.test.tsx.snap | 10 +- .../Icon/__snapshots__/Icon.test.tsx.snap | 2 +- .../__snapshots__/ListItem.test.tsx.snap | 2 +- .../ListItemColumn.test.tsx.snap | 2 +- .../ModalConfirmation.test.tsx.snap | 18 +- .../ModalMandatory.test.tsx.snap | 6 +- .../TabBar/__snapshots__/TabBar.test.tsx.snap | 38 +- .../__snapshots__/TabBarItem.test.tsx.snap | 2 +- .../__snapshots__/PickerAccount.test.tsx.snap | 8 +- .../__snapshots__/PickerBase.test.tsx.snap | 4 +- .../__snapshots__/PickerNetwork.test.tsx.snap | 6 +- .../MultiSelectItem.test.tsx.snap | 8 +- .../__snapshots__/SelectItem.test.tsx.snap | 4 +- .../__snapshots__/SheetBottom.test.tsx.snap | 44 +- .../__snapshots__/SheetHeader.test.tsx.snap | 6 +- .../Tags/Tag/__snapshots__/Tag.test.tsx.snap | 4 +- .../TagUrl/__snapshots__/TagUrl.test.tsx.snap | 8 +- .../Text/__snapshots__/Text.test.tsx.snap | 2 +- .../TextWithPrefixIcon.test.tsx.snap | 4 +- .../__snapshots__/ApprovalModal.test.tsx.snap | 4 +- .../ConnectApproval.test.tsx.snap | 6 +- .../SignatureApproval.test.tsx.snap | 6 +- .../TemplateConfirmationModal.test.tsx.snap | 8 +- .../TransactionApproval.test.tsx.snap | 2 +- .../WalletConnectApproval.test.tsx.snap | 8 +- .../WatchAssetApproval.test.tsx.snap | 4 +- .../Keypad/__snapshots__/Keypad.test.js.snap | 4 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../Nav/App/__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../AccountFromToInfoCard.test.tsx.snap | 146 +- .../__snapshots__/index.test.tsx.snap | 56 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../AccountSelector.test.tsx.snap | 264 +- .../__snapshots__/index.test.tsx.snap | 6 +- .../__snapshots__/index.test.tsx.snap | 32 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 54 +- .../__snapshots__/index.test.tsx.snap | 32 +- .../__snapshots__/index.test.jsx.snap | 274 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../__snapshots__/index.test.tsx.snap | 6 +- .../ApprovalResult.test.tsx.snap | 64 +- .../ApproveTransactionHeader.test.tsx.snap | 138 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 70 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../BlockaidBanner.test.tsx.snap | 150 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 34 +- .../Button/__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 16 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 20 +- .../CustomGasModal.test.tsx.snap | 306 +- .../__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/index.test.tsx.snap | 54 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 70 +- .../__snapshots__/index.test.tsx.snap | 42 +- .../__snapshots__/index.test.tsx.snap | 10 +- ...AutomaticSecurityChecksModal.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 6 +- .../__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 14 +- .../__snapshots__/index.test.tsx.snap | 16 +- .../LoginOptionsSwitch.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 6 +- .../__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.js.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 36 +- .../Step1/__snapshots__/index.test.tsx.snap | 8 +- .../Step2/__snapshots__/index.test.tsx.snap | 8 +- .../Step3/__snapshots__/index.test.tsx.snap | 10 +- .../Step4/__snapshots__/index.test.tsx.snap | 8 +- .../Step5/__snapshots__/index.test.tsx.snap | 8 +- .../Step6/__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/index.test.tsx.snap | 50 +- .../__snapshots__/GetStarted.test.tsx.snap | 428 +-- .../PaymentMethods.test.tsx.snap | 2660 ++++++++--------- .../UI/Ramp/Views/Quotes/Quotes.test.tsx | 20 +- .../Quotes/__snapshots__/Quotes.test.tsx.snap | 1490 ++++----- .../__snapshots__/Regions.test.tsx.snap | 1688 +++++------ .../__snapshots__/index.test.tsx.snap | 8 +- .../Screen/__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 22 +- .../__snapshots__/index.test.tsx.snap | 32 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 18 +- .../Root/__snapshots__/Root.test.tsx.snap | 158 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 22 +- .../__snapshots__/index.test.tsx.snap | 58 +- .../__snapshots__/index.test.tsx.snap | 50 +- .../__snapshots__/index.test.tsx.snap | 72 +- .../__snapshots__/TokenIcon.test.js.snap | 42 +- .../TokenSelectButton.test.js.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 28 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 26 +- .../UI/Tabs/__snapshots__/index.test.tsx.snap | 40 +- .../__snapshots__/TextEstimated.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../Tokens/__snapshots__/index.test.tsx.snap | 640 ++-- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 14 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.js.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 132 +- .../__snapshots__/index.test.tsx.snap | 132 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 476 +-- .../__snapshots__/index.test.tsx.snap | 14 +- .../__snapshots__/index.test.tsx.snap | 6 +- .../__snapshots__/UpdateNeeded.test.tsx.snap | 8 +- .../__snapshots__/index.test.js.snap | 8 +- .../__snapshots__/WalletAccount.test.tsx.snap | 54 +- .../__snapshots__/WarningAlert.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 6 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 98 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../__snapshots__/index.test.tsx.snap | 18 +- .../__snapshots__/index.test.tsx.snap | 14 +- .../Approve/__snapshots__/index.test.tsx.snap | 8 +- .../Asset/__snapshots__/index.test.js.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../BrowserUrlModal.test.tsx.snap | 12 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../EditAccountName.test.tsx.snap | 34 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 6 +- .../__snapshots__/index.test.tsx.snap | 22 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../Login/__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 14 +- .../__snapshots__/index.test.tsx.snap | 16 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../NetworkSelector.test.tsx.snap | 226 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 18 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../Root/__snapshots__/index.test.tsx.snap | 2 +- .../Send/__snapshots__/index.test.tsx.snap | 8 +- .../AddressElement.test.tsx.snap | 26 +- .../__snapshots__/AddressFrom.test.tsx.snap | 74 +- .../__snapshots__/AddressList.test.tsx.snap | 38 +- .../__snapshots__/AddressTo.test.tsx.snap | 38 +- .../Amount/__snapshots__/index.test.tsx.snap | 1970 ++++++------ .../Confirm/__snapshots__/index.test.tsx.snap | 416 +-- .../SendTo/__snapshots__/SendTo.test.tsx.snap | 8 +- .../EthSignFriction.test.tsx.snap | 24 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 140 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 6 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.js.snap | 8 +- .../Wallet/__snapshots__/index.test.tsx.snap | 8 +- .../ppom/__snapshots__/PPOMView.test.tsx.snap | 14 +- package.json | 6 +- yarn.lock | 917 +++--- 242 files changed, 8017 insertions(+), 7870 deletions(-) diff --git a/app/component-library/components-temp/Contracts/ContractBoxBase/__snapshots__/ContractBoxBase.test.tsx.snap b/app/component-library/components-temp/Contracts/ContractBoxBase/__snapshots__/ContractBoxBase.test.tsx.snap index 560e0d734456..cceace09bb7a 100644 --- a/app/component-library/components-temp/Contracts/ContractBoxBase/__snapshots__/ContractBoxBase.test.tsx.snap +++ b/app/component-library/components-temp/Contracts/ContractBoxBase/__snapshots__/ContractBoxBase.test.tsx.snap @@ -3,7 +3,7 @@ exports[`Component ContractBoxBase should render correctly 1`] = ` @@ -22,7 +22,7 @@ exports[`Accordion - Snapshot should render default settings correctly 1`] = ` diff --git a/app/component-library/components/Accordions/Accordion/foundation/AccordionHeader/__snapshots__/AccordionHeader.test.tsx.snap b/app/component-library/components/Accordions/Accordion/foundation/AccordionHeader/__snapshots__/AccordionHeader.test.tsx.snap index 11d24fdc748e..a2286c6bc579 100644 --- a/app/component-library/components/Accordions/Accordion/foundation/AccordionHeader/__snapshots__/AccordionHeader.test.tsx.snap +++ b/app/component-library/components/Accordions/Accordion/foundation/AccordionHeader/__snapshots__/AccordionHeader.test.tsx.snap @@ -5,7 +5,7 @@ exports[`AccordionHeader - Snapshot should render a rotated down Arrow if isExpa activeOpacity={0.5} onPress={[Function]} style={ - Object { + { "alignItems": "center", "flexDirection": "row", "height": 24, @@ -16,7 +16,7 @@ exports[`AccordionHeader - Snapshot should render a rotated down Arrow if isExpa > } style={ - Object { + { "backgroundColor": "#0376C919", "borderColor": "#0376C9", "borderLeftWidth": 4, diff --git a/app/component-library/components/Banners/Banner/variants/BannerTip/__snapshots__/BannerTip.test.tsx.snap b/app/component-library/components/Banners/Banner/variants/BannerTip/__snapshots__/BannerTip.test.tsx.snap index d0e3b80fdd14..e578b7f37197 100644 --- a/app/component-library/components/Banners/Banner/variants/BannerTip/__snapshots__/BannerTip.test.tsx.snap +++ b/app/component-library/components/Banners/Banner/variants/BannerTip/__snapshots__/BannerTip.test.tsx.snap @@ -3,7 +3,7 @@ exports[`BannerTip should render default settings correctly 1`] = ` } style={ - Object { + { "backgroundColor": "#FFFFFF", "borderColor": "#BBC0C5", "borderWidth": 1, diff --git a/app/component-library/components/BottomSheets/BottomSheetFooter/__snapshots__/BottomSheetFooter.test.tsx.snap b/app/component-library/components/BottomSheets/BottomSheetFooter/__snapshots__/BottomSheetFooter.test.tsx.snap index 70c916bec825..a52b4921e537 100644 --- a/app/component-library/components/BottomSheets/BottomSheetFooter/__snapshots__/BottomSheetFooter.test.tsx.snap +++ b/app/component-library/components/BottomSheets/BottomSheetFooter/__snapshots__/BottomSheetFooter.test.tsx.snap @@ -3,7 +3,7 @@ exports[`BottomSheetFooter should render snapshot correctly 1`] = ` , `; @@ -15,7 +15,7 @@ exports[`ConnectApproval sets isVisible to false if incorrect approval request t isVisible={false} > `; @@ -25,7 +25,7 @@ exports[`ConnectApproval sets isVisible to false if no approval request 1`] = ` isVisible={false} > `; diff --git a/app/components/Approvals/SignatureApproval/__snapshots__/SignatureApproval.test.tsx.snap b/app/components/Approvals/SignatureApproval/__snapshots__/SignatureApproval.test.tsx.snap index 78b955c6b016..468386b1b9bd 100644 --- a/app/components/Approvals/SignatureApproval/__snapshots__/SignatureApproval.test.tsx.snap +++ b/app/components/Approvals/SignatureApproval/__snapshots__/SignatureApproval.test.tsx.snap @@ -4,7 +4,7 @@ exports[`SignatureApproval populates message params if approval type is eth_sign `; @@ -19,7 +19,7 @@ exports[`WatchAssetApproval sets isVisible to false if incorrect approval reques isVisible={false} > `; diff --git a/app/components/Base/Keypad/__snapshots__/Keypad.test.js.snap b/app/components/Base/Keypad/__snapshots__/Keypad.test.js.snap index d9197f745b85..5df6f17dbdad 100644 --- a/app/components/Base/Keypad/__snapshots__/Keypad.test.js.snap +++ b/app/components/Base/Keypad/__snapshots__/Keypad.test.js.snap @@ -3,8 +3,8 @@ exports[`Keypad component components should render correctly 1`] = ` @@ -598,7 +598,7 @@ Array [ scrollTo={null} statusBarTranslucent={false} supportedOrientations={ - Array [ + [ "portrait", "landscape", ] @@ -614,8 +614,8 @@ Array [ exports[`AccountFromToInfoCard should render correctly 1`] = ` diff --git a/app/components/UI/ActionModal/__snapshots__/index.test.tsx.snap b/app/components/UI/ActionModal/__snapshots__/index.test.tsx.snap index 04225725dad9..fc7efae023d6 100644 --- a/app/components/UI/ActionModal/__snapshots__/index.test.tsx.snap +++ b/app/components/UI/ActionModal/__snapshots__/index.test.tsx.snap @@ -32,8 +32,8 @@ exports[`ActionModal should render correctly 1`] = ` scrollTo={null} statusBarTranslucent={false} style={ - Array [ - Object { + [ + { "margin": 0, "width": "100%", }, @@ -41,7 +41,7 @@ exports[`ActionModal should render correctly 1`] = ` ] } supportedOrientations={ - Array [ + [ "portrait", "landscape", ] diff --git a/app/components/UI/ActionView/__snapshots__/index.test.tsx.snap b/app/components/UI/ActionView/__snapshots__/index.test.tsx.snap index 962099848f32..d6cb4d6ac238 100644 --- a/app/components/UI/ActionView/__snapshots__/index.test.tsx.snap +++ b/app/components/UI/ActionView/__snapshots__/index.test.tsx.snap @@ -3,7 +3,7 @@ exports[`ActionView should render correctly 1`] = ` @@ -728,20 +728,20 @@ exports[`AddressInputs AddressTo should match default snapshot 1`] = ` @@ -884,13 +884,13 @@ exports[`AddressInputs AddressTo should match default snapshot 1`] = ` exports[`AddressInputs AddressTo should match snapshot when layout is vertical 1`] = ` @@ -1076,20 +1076,20 @@ exports[`AddressInputs AddressTo should match snapshot when layout is vertical 1 diff --git a/app/components/UI/AnimatedSpinner/__snapshots__/index.test.tsx.snap b/app/components/UI/AnimatedSpinner/__snapshots__/index.test.tsx.snap index 30ac921b2139..b754d34bb67b 100644 --- a/app/components/UI/AnimatedSpinner/__snapshots__/index.test.tsx.snap +++ b/app/components/UI/AnimatedSpinner/__snapshots__/index.test.tsx.snap @@ -3,7 +3,7 @@ exports[`AnimatedSpinner should render correctly 1`] = ` @@ -52,7 +52,7 @@ exports[`BrowserBottomBar should render correctly 1`] = ` disabled={true} onPress={[Function]} style={ - Object { + { "alignItems": "center", "flex": 1, "height": 24, @@ -70,14 +70,14 @@ exports[`BrowserBottomBar should render correctly 1`] = ` name="angle-right" size={24} style={ - Array [ - Object { + [ + { "color": "#24272A", "height": 24, "textAlign": "center", "width": 24, }, - Object { + { "color": "#BBC0C5", }, ] @@ -87,7 +87,7 @@ exports[`BrowserBottomBar should render correctly 1`] = ` @@ -206,8 +206,8 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -276,14 +276,14 @@ exports[`CustomGasModal should render correctly 1`] = ` collapsable={false} pointerEvents={null} style={ - Object { + { "opacity": 1, } } > @@ -622,7 +622,7 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -691,7 +691,7 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -821,7 +821,7 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -854,8 +854,8 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -1016,7 +1016,7 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -1085,7 +1085,7 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -1269,14 +1269,14 @@ exports[`CustomGasModal should render correctly 1`] = ` disabled={false} onPress={[Function]} style={ - Array [ - Array [ - Object { + [ + [ + { "borderRadius": 100, "justifyContent": "center", "padding": 15, }, - Object { + { "backgroundColor": "#0376C9", "minHeight": 50, }, @@ -1288,22 +1288,22 @@ exports[`CustomGasModal should render correctly 1`] = ` > diff --git a/app/components/UI/EnableAutomaticSecurityChecksModal/__snapshots__/EnableAutomaticSecurityChecksModal.test.tsx.snap b/app/components/UI/EnableAutomaticSecurityChecksModal/__snapshots__/EnableAutomaticSecurityChecksModal.test.tsx.snap index 3a7a8c726672..313a7502b6d6 100644 --- a/app/components/UI/EnableAutomaticSecurityChecksModal/__snapshots__/EnableAutomaticSecurityChecksModal.test.tsx.snap +++ b/app/components/UI/EnableAutomaticSecurityChecksModal/__snapshots__/EnableAutomaticSecurityChecksModal.test.tsx.snap @@ -3,8 +3,8 @@ exports[`EnableAutomaticSecurityChecksModal should render correctly 1`] = ` `; diff --git a/app/components/UI/OnboardingWizard/Step4/__snapshots__/index.test.tsx.snap b/app/components/UI/OnboardingWizard/Step4/__snapshots__/index.test.tsx.snap index b4e2d1c97bb0..f8ea23e7a89c 100644 --- a/app/components/UI/OnboardingWizard/Step4/__snapshots__/index.test.tsx.snap +++ b/app/components/UI/OnboardingWizard/Step4/__snapshots__/index.test.tsx.snap @@ -3,8 +3,8 @@ exports[`Step4 should render correctly 1`] = ` `; diff --git a/app/components/UI/PaymentRequest/__snapshots__/index.test.tsx.snap b/app/components/UI/PaymentRequest/__snapshots__/index.test.tsx.snap index 81c635885bff..c9c1de055093 100644 --- a/app/components/UI/PaymentRequest/__snapshots__/index.test.tsx.snap +++ b/app/components/UI/PaymentRequest/__snapshots__/index.test.tsx.snap @@ -3,8 +3,8 @@ exports[`PaymentRequest should render correctly 1`] = ` @@ -1608,15 +1608,15 @@ exports[`GetStarted renders correctly when sdkError is present 1`] = ` @@ -573,8 +573,8 @@ exports[`PaymentMethods View renders correctly 1`] = ` @@ -831,8 +831,8 @@ exports[`PaymentMethods View renders correctly 1`] = ` @@ -1055,8 +1055,8 @@ exports[`PaymentMethods View renders correctly 1`] = ` @@ -1328,8 +1328,8 @@ exports[`PaymentMethods View renders correctly 1`] = ` @@ -1558,8 +1558,8 @@ exports[`PaymentMethods View renders correctly 1`] = ` @@ -1831,8 +1831,8 @@ exports[`PaymentMethods View renders correctly 1`] = ` @@ -4010,15 +4010,15 @@ exports[`PaymentMethods View renders correctly with empty data 1`] = ` @@ -4717,15 +4717,15 @@ exports[`PaymentMethods View renders correctly with error 1`] = ` @@ -6907,8 +6907,8 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim @@ -7165,8 +7165,8 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim @@ -7389,8 +7389,8 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim @@ -7662,8 +7662,8 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim @@ -7892,8 +7892,8 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim @@ -8165,8 +8165,8 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim @@ -8971,15 +8971,15 @@ exports[`PaymentMethods View renders correctly with sdkError 1`] = ` @@ -9707,8 +9707,8 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = @@ -9965,8 +9965,8 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = @@ -10189,8 +10189,8 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = @@ -10462,8 +10462,8 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = @@ -10692,8 +10692,8 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = @@ -10965,8 +10965,8 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = { ); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "ONRAMP_PROVIDER_SELECTED", - Object { + { "chain_id_destination": "1", "crypto_out": 0.0162, "currency_destination": "ETH", @@ -330,9 +330,9 @@ describe('Quotes', () => { ); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "ONRAMP_PROVIDER_SELECTED", - Object { + { "chain_id_destination": "1", "crypto_out": 0.0162, "currency_destination": "ETH", @@ -429,10 +429,10 @@ describe('Quotes', () => { jest.clearAllTimers(); }); expect(mockTrackEvent.mock.calls).toMatchInlineSnapshot(` - Array [ - Array [ + [ + [ "ONRAMP_QUOTES_RECEIVED", - Object { + { "amount": 50, "average_crypto_out": 0.016671, "average_gas_fee": 1.32, @@ -445,7 +445,7 @@ describe('Quotes', () => { "payment_method_id": "/payment-methods/test-payment-method", "provider_onramp_first": "Banxa (Staging)", "provider_onramp_last": "MoonPay (Staging)", - "provider_onramp_list": Array [ + "provider_onramp_list": [ "Banxa (Staging)", "MoonPay (Staging)", ], @@ -453,9 +453,9 @@ describe('Quotes', () => { "results_count": 2, }, ], - Array [ + [ "ONRAMP_QUOTE_ERROR", - Object { + { "amount": 50, "chain_id_destination": "1", "currency_destination": "ETH", diff --git a/app/components/UI/Ramp/Views/Quotes/__snapshots__/Quotes.test.tsx.snap b/app/components/UI/Ramp/Views/Quotes/__snapshots__/Quotes.test.tsx.snap index c330e68a0ff6..3c4bf618cdac 100644 --- a/app/components/UI/Ramp/Views/Quotes/__snapshots__/Quotes.test.tsx.snap +++ b/app/components/UI/Ramp/Views/Quotes/__snapshots__/Quotes.test.tsx.snap @@ -1,14 +1,14 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`LoadingQuotes component renders correctly 1`] = ` -Array [ +[ , , @@ -2133,12 +2133,12 @@ exports[`Quotes renders correctly after animation with quotes 1`] = ` @@ -2529,12 +2529,12 @@ exports[`Quotes renders correctly after animation with quotes 1`] = ` @@ -3259,15 +3259,15 @@ exports[`Quotes renders correctly after animation without quotes 1`] = ` @@ -3933,15 +3933,15 @@ exports[`Quotes renders correctly when fetching quotes errors 1`] = ` @@ -4635,15 +4635,15 @@ exports[`Quotes renders correctly with sdkError 1`] = ` @@ -5312,15 +5312,15 @@ exports[`Quotes renders quotes expired screen 1`] = ` @@ -684,8 +684,8 @@ exports[`Regions View renders correctly 1`] = ` @@ -1930,15 +1930,15 @@ exports[`Regions View renders correctly with error 1`] = ` @@ -3220,15 +3220,15 @@ exports[`Regions View renders correctly with sdkError 1`] = ` @@ -4093,8 +4093,8 @@ exports[`Regions View renders correctly with selectedRegion 1`] = ` @@ -4914,8 +4914,8 @@ exports[`Regions View renders correctly with unsupportedRegion 1`] = ` @@ -5187,15 +5187,15 @@ exports[`Regions View renders correctly with unsupportedRegion 1`] = ` @@ -6114,8 +6114,8 @@ exports[`Regions View renders regions modal when pressing select button 1`] = ` @@ -6588,7 +6588,7 @@ exports[`Regions View renders regions modal when pressing select button 1`] = ` placeholder="Search by country" placeholderTextColor="#BBC0C5" style={ - Object { + { "color": "#24272A", "flex": 1, "fontFamily": "EuclidCircularB-Regular", @@ -6601,8 +6601,8 @@ exports[`Regions View renders regions modal when pressing select button 1`] = ` `; diff --git a/app/components/UI/SeedphraseModal/__snapshots__/index.test.tsx.snap b/app/components/UI/SeedphraseModal/__snapshots__/index.test.tsx.snap index 5501ca637df2..8d9966d8bede 100644 --- a/app/components/UI/SeedphraseModal/__snapshots__/index.test.tsx.snap +++ b/app/components/UI/SeedphraseModal/__snapshots__/index.test.tsx.snap @@ -3,7 +3,7 @@ exports[`SeedphraseModal should render correctly 1`] = ` } data={ - Array [ - Object { + [ + { "address": "0x0", "balanceFiat": "< $0.01", "decimals": 18, @@ -367,7 +367,7 @@ exports[`Tokens should hide zero balance tokens when setting is on 1`] = ` "name": "Ethereum", "symbol": "ETH", }, - Object { + { "address": "0x01", "balanceFiat": "$0", "decimals": 18, @@ -390,7 +390,7 @@ exports[`Tokens should hide zero balance tokens when setting is on 1`] = ` refreshControl={ @@ -412,7 +412,7 @@ exports[`Tokens should hide zero balance tokens when setting is on 1`] = ` > } data={ - Array [ - Object { + [ + { "address": "0x0", "balanceFiat": "< $0.01", "decimals": 18, @@ -1352,7 +1352,7 @@ exports[`Tokens should render correctly 1`] = ` "name": "Ethereum", "symbol": "ETH", }, - Object { + { "address": "0x01", "balanceFiat": "$0", "decimals": 18, @@ -1375,7 +1375,7 @@ exports[`Tokens should render correctly 1`] = ` refreshControl={ @@ -1397,7 +1397,7 @@ exports[`Tokens should render correctly 1`] = ` > } data={ - Array [ - Object { + [ + { "address": "0x0", "balanceFiat": "< $0.01", "decimals": 18, @@ -2337,7 +2337,7 @@ exports[`Tokens should show all balance tokens when hideZeroBalanceTokens settin "name": "Ethereum", "symbol": "ETH", }, - Object { + { "address": "0x01", "balanceFiat": "$0", "decimals": 18, @@ -2345,7 +2345,7 @@ exports[`Tokens should show all balance tokens when hideZeroBalanceTokens settin "name": "Bat", "symbol": "BAT", }, - Object { + { "address": "0x02", "balanceFiat": "$0", "decimals": 18, @@ -2368,7 +2368,7 @@ exports[`Tokens should show all balance tokens when hideZeroBalanceTokens settin refreshControl={ @@ -2390,7 +2390,7 @@ exports[`Tokens should show all balance tokens when hideZeroBalanceTokens settin > @@ -140,8 +140,8 @@ exports[`TransactionReviewEIP1559 should match snapshot 1`] = ` @@ -140,8 +140,8 @@ exports[`TransactionReviewEIP1559 should render correctly 1`] = ` `; diff --git a/app/components/UI/TransactionReview/TransactionReviewSummary/__snapshots__/index.test.tsx.snap b/app/components/UI/TransactionReview/TransactionReviewSummary/__snapshots__/index.test.tsx.snap index 3d0f25426c77..73ed5d3c14c8 100644 --- a/app/components/UI/TransactionReview/TransactionReviewSummary/__snapshots__/index.test.tsx.snap +++ b/app/components/UI/TransactionReview/TransactionReviewSummary/__snapshots__/index.test.tsx.snap @@ -3,8 +3,8 @@ exports[`TransactionReviewSummary should render correctly 1`] = ` @@ -968,7 +968,7 @@ Array [ scrollTo={null} statusBarTranslucent={false} supportedOrientations={ - Array [ + [ "portrait", "landscape", ] @@ -981,14 +981,14 @@ Array [ @@ -1194,8 +1194,8 @@ Array [ @@ -1838,7 +1838,7 @@ Array [ @@ -1872,7 +1872,7 @@ Array [ `; diff --git a/app/components/Views/BrowserTab/__snapshots__/index.test.tsx.snap b/app/components/Views/BrowserTab/__snapshots__/index.test.tsx.snap index 18589be6ab41..d1ae718cf2a8 100644 --- a/app/components/Views/BrowserTab/__snapshots__/index.test.tsx.snap +++ b/app/components/Views/BrowserTab/__snapshots__/index.test.tsx.snap @@ -3,8 +3,8 @@ exports[`Browser should render correctly 1`] = ` diff --git a/app/components/Views/GasEducationCarousel/__snapshots__/index.test.tsx.snap b/app/components/Views/GasEducationCarousel/__snapshots__/index.test.tsx.snap index fac7603eef1d..37556f371272 100644 --- a/app/components/Views/GasEducationCarousel/__snapshots__/index.test.tsx.snap +++ b/app/components/Views/GasEducationCarousel/__snapshots__/index.test.tsx.snap @@ -3,8 +3,8 @@ exports[`GasEducationCarousel should render correctly 1`] = ` diff --git a/app/components/Views/SendFlow/AddressList/__snapshots__/AddressList.test.tsx.snap b/app/components/Views/SendFlow/AddressList/__snapshots__/AddressList.test.tsx.snap index cabc8091469a..d4cf96c36982 100644 --- a/app/components/Views/SendFlow/AddressList/__snapshots__/AddressList.test.tsx.snap +++ b/app/components/Views/SendFlow/AddressList/__snapshots__/AddressList.test.tsx.snap @@ -3,7 +3,7 @@ exports[`AddressList should render correctly 1`] = ` diff --git a/app/components/Views/SendFlow/Amount/__snapshots__/index.test.tsx.snap b/app/components/Views/SendFlow/Amount/__snapshots__/index.test.tsx.snap index 5fe600e3d3a1..e015f7e1c78d 100644 --- a/app/components/Views/SendFlow/Amount/__snapshots__/index.test.tsx.snap +++ b/app/components/Views/SendFlow/Amount/__snapshots__/index.test.tsx.snap @@ -3,7 +3,7 @@ exports[`Amount should convert ERC-20 token value to USD 1`] = ` @@ -413,11 +413,11 @@ exports[`Amount should convert ERC-20 token value to USD 1`] = ` @@ -565,14 +565,14 @@ exports[`Amount should convert ERC-20 token value to USD 1`] = ` @@ -1131,11 +1131,11 @@ exports[`Amount should convert ETH to USD 1`] = ` @@ -1283,14 +1283,14 @@ exports[`Amount should convert ETH to USD 1`] = ` @@ -1849,11 +1849,11 @@ exports[`Amount should convert USD to ERC-20 token value 1`] = ` @@ -2018,14 +2018,14 @@ exports[`Amount should convert USD to ERC-20 token value 1`] = ` @@ -2584,11 +2584,11 @@ exports[`Amount should convert USD to ETH 1`] = ` @@ -2753,14 +2753,14 @@ exports[`Amount should convert USD to ETH 1`] = ` @@ -3319,11 +3319,11 @@ exports[`Amount should display correct balance 1`] = ` @@ -3470,14 +3470,14 @@ exports[`Amount should display correct balance 1`] = ` @@ -4036,11 +4036,11 @@ exports[`Amount should not show a warning when conversion rate is available 1`] @@ -4187,14 +4187,14 @@ exports[`Amount should not show a warning when conversion rate is available 1`] @@ -4753,11 +4753,11 @@ exports[`Amount should not show a warning when transfering collectibles 1`] = ` @@ -5435,11 +5435,11 @@ exports[`Amount should proceed if balance is sufficient while on Native primary @@ -5587,14 +5587,14 @@ exports[`Amount should proceed if balance is sufficient while on Native primary @@ -6115,7 +6115,7 @@ exports[`Amount should render correctly 1`] = ` @@ -6223,11 +6223,11 @@ exports[`Amount should render correctly 1`] = ` @@ -6827,7 +6827,7 @@ exports[`Amount should show a warning when conversion rate is not available 1`] @@ -6935,11 +6935,11 @@ exports[`Amount should show a warning when conversion rate is not available 1`] @@ -7572,11 +7572,11 @@ exports[`Amount should show an error message if balance is insufficient 1`] = ` @@ -7724,14 +7724,14 @@ exports[`Amount should show an error message if balance is insufficient 1`] = ` @@ -1002,7 +1002,7 @@ exports[`Confirm should render correctly 1`] = ` scrollTo={null} statusBarTranslucent={false} supportedOrientations={ - Array [ + [ "portrait", "landscape", ] @@ -1014,7 +1014,7 @@ exports[`Confirm should render correctly 1`] = ` /> @@ -1259,8 +1259,8 @@ exports[`Confirm should render correctly 1`] = ` diff --git a/app/components/Views/Settings/Contacts/ContactForm/__snapshots__/index.test.tsx.snap b/app/components/Views/Settings/Contacts/ContactForm/__snapshots__/index.test.tsx.snap index ba95f02c55e2..f239179894b8 100644 --- a/app/components/Views/Settings/Contacts/ContactForm/__snapshots__/index.test.tsx.snap +++ b/app/components/Views/Settings/Contacts/ContactForm/__snapshots__/index.test.tsx.snap @@ -3,8 +3,8 @@ exports[`ContactForm should render correctly 1`] = `