From c042d2c98ebe199b386da66a381aa06f5e4d8f1f Mon Sep 17 00:00:00 2001 From: legobeat <109787230+legobeat@users.noreply.github.com> Date: Thu, 2 May 2024 06:40:30 +0900 Subject: [PATCH] chore: Update Jest to v29 (#9454) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit _This is #7160 rebased on `main` with changes to snapshots reapplied_ --- 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 ## **Description** ## **Related issues** #### Blocked by - [x] #9459 #### Blocking - #9452 #### Previously - #7160 - #6277 - #6876 - #8960 ## **Manual testing steps** ## **Screenshots/Recordings** ### **Before** ### **After** ## **Pre-merge author checklist** - [x] I’ve followed [MetaMask Coding Standards](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/CODING_GUIDELINES.md). - [x] I've completed the PR template to the best of my ability - [x] I’ve included tests if applicable - [x] I’ve documented my code using [JSDoc](https://jsdoc.app/) format if applicable - [x] I’ve applied the right labels on the PR (see [labeling guidelines](https://github.com/MetaMask/metamask-mobile/blob/main/.github/guidelines/LABELING_GUIDELINES.md)). Not required for external contributors. ## **Pre-merge reviewer checklist** - [ ] I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed). - [ ] I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots. --------- Co-authored-by: Mark Stacey --- .../ContractBoxBase.test.tsx.snap | 12 +- .../__snapshots__/CustomInput.test.tsx.snap | 12 +- .../CustomSpendCap.test.tsx.snap | 42 +- .../__snapshots__/TagColored.test.tsx.snap | 4 +- .../__snapshots__/Accordion.test.tsx.snap | 4 +- .../AccordionHeader.test.tsx.snap | 28 +- .../__snapshots__/AvatarBase.test.tsx.snap | 4 +- .../__snapshots__/AvatarAccount.test.tsx.snap | 26 +- .../__snapshots__/AvatarFavicon.test.tsx.snap | 18 +- .../__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 | 4 +- .../__snapshots__/BadgeBase.test.tsx.snap | 2 +- .../__snapshots__/BadgeNetwork.test.tsx.snap | 14 +- .../BadgeNotifications.test.tsx.snap | 4 +- .../__snapshots__/BadgeStatus.test.tsx.snap | 2 +- .../__snapshots__/BadgeWrapper.test.tsx.snap | 16 +- .../Banner/__snapshots__/Banner.test.tsx.snap | 62 +- .../__snapshots__/BannerAlert.test.tsx.snap | 22 +- .../__snapshots__/BannerTip.test.tsx.snap | 26 +- .../BottomSheetDialog.test.tsx.snap | 22 +- .../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 | 6 +- .../ButtonSecondary.test.tsx.snap | 6 +- .../__snapshots__/ButtonIcon.test.tsx.snap | 4 +- .../Card/__snapshots__/Card.test.tsx.snap | 2 +- .../Cell/__snapshots__/Cell.test.tsx.snap | 138 +- .../__snapshots__/CellBase.test.tsx.snap | 40 +- .../__snapshots__/CellDisplay.test.tsx.snap | 44 +- .../CellMultiSelect.test.tsx.snap | 50 +- .../__snapshots__/CellSelect.test.tsx.snap | 44 +- .../__snapshots__/Checkbox.test.tsx.snap | 4 +- .../__snapshots__/TextField.test.tsx.snap | 4 +- .../Input/__snapshots__/Input.test.tsx.snap | 2 +- .../__snapshots__/HeaderBase.test.tsx.snap | 10 +- .../Icon/__snapshots__/Icon.test.tsx.snap | 2 +- .../__snapshots__/ListItem.test.tsx.snap | 2 +- .../ListItemColumn.test.tsx.snap | 2 +- .../ListItemMultiSelect.test.tsx.snap | 10 +- .../ListItemSelect.test.tsx.snap | 4 +- .../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 | 38 +- .../__snapshots__/PickerBase.test.tsx.snap | 4 +- .../__snapshots__/PickerNetwork.test.tsx.snap | 12 +- .../__snapshots__/RadioButton.test.tsx.snap | 4 +- .../__snapshots__/SelectButton.test.tsx.snap | 42 +- .../SelectButtonBase.test.tsx.snap | 42 +- .../__snapshots__/SelectOption.test.tsx.snap | 42 +- .../__snapshots__/SelectValue.test.tsx.snap | 38 +- .../__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 | 2 +- .../AddChainApproval.test.tsx.snap | 2 +- .../__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 | 74 +- .../__snapshots__/index.test.tsx.snap | 120 +- .../AccountFromToInfoCard.test.tsx.snap | 124 +- .../__snapshots__/index.test.tsx.snap | 56 +- .../__snapshots__/index.test.tsx.snap | 42 +- .../__snapshots__/index.test.tsx.snap | 82 +- .../AccountSelector.test.tsx.snap | 264 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 66 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 50 +- .../__snapshots__/index.test.jsx.snap | 230 +- .../__snapshots__/index.test.tsx.snap | 16 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 20 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 70 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../__snapshots__/index.test.tsx.snap | 22 +- .../__snapshots__/BackupAlert.test.tsx.snap | 32 +- .../BasicFunctionalityModal.test.js.snap | 66 +- .../BasicFunctionality.test.js.snap | 14 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 86 +- .../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 +- .../CollectibleMedia.test.tsx.snap | 16 +- .../CollectibleModal.test.tsx.snap | 166 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../ConfirmAddAsset.test.tsx.snap | 74 +- .../__snapshots__/index.test.tsx.snap | 34 +- .../__snapshots__/index.test.tsx.snap | 226 +- .../__snapshots__/index.test.tsx.snap | 70 +- .../__snapshots__/index.test.tsx.snap | 42 +- ...AutomaticSecurityChecksModal.test.tsx.snap | 120 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 14 +- .../__snapshots__/index.test.tsx.snap | 16 +- .../__snapshots__/index.test.tsx.snap | 4 +- .../OpenETHAppStep.test.tsx.snap | 52 +- .../SearchingForDeviceStep.test.tsx.snap | 132 +- .../LedgerConfirmationModal.test.tsx.snap | 64 +- .../LedgerMessageSignModal.test.tsx.snap | 164 +- .../LoginOptionsSwitch.test.tsx.snap | 8 +- .../__snapshots__/ManageNetworks.test.js.snap | 20 +- .../__snapshots__/index.test.tsx.snap | 4 +- .../MultiAssetListItems.test.tsx.snap | 4 +- .../UI/Name/__snapshots__/Name.test.tsx.snap | 6 +- .../__snapshots__/index.test.tsx.snap | 30 +- .../__snapshots__/index.test.js.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 88 +- .../NetworkVerificationInfo.test.tsx.snap | 86 +- .../__snapshots__/index.test.tsx.snap | 54 +- .../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 | 236 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 72 +- .../__snapshots__/BuildQuote.test.tsx.snap | 3816 +++++++------- .../__snapshots__/GetStarted.test.tsx.snap | 590 +-- .../NetworkSwitcher/NetworkSwitcher.test.tsx | 16 +- .../NetworkSwitcher.test.tsx.snap | 2138 ++++---- .../Views/OrderDetails/OrderDetails.test.tsx | 8 +- .../__snapshots__/OrderDetails.test.tsx.snap | 4472 ++++++++--------- .../Ramp/Views/OrdersList/OrdersList.test.tsx | 6 +- .../__snapshots__/OrdersList.test.tsx.snap | 1094 ++-- .../PaymentMethods/PaymentMethods.test.tsx | 24 +- .../PaymentMethods.test.tsx.snap | 3314 ++++++------ .../UI/Ramp/Views/Quotes/Quotes.test.tsx | 46 +- .../Quotes/__snapshots__/Quotes.test.tsx.snap | 2154 ++++---- .../__snapshots__/Regions.test.tsx.snap | 1976 ++++---- .../SendTransaction/SendTransaction.test.tsx | 40 +- .../SendTransaction.test.tsx.snap | 536 +- .../AddActivationKey.test.tsx.snap | 160 +- .../__snapshots__/Settings.test.tsx.snap | 1264 ++--- .../__snapshots__/OrderListItem.test.tsx.snap | 472 +- app/components/UI/Ramp/utils/index.test.ts | 16 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../Screen/__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/index.test.tsx.snap | 108 +- .../__snapshots__/index.test.tsx.snap | 80 +- .../__snapshots__/index.test.tsx.snap | 20 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../SheetActionView.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 | 96 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 48 +- .../UI/Tabs/__snapshots__/index.test.tsx.snap | 92 +- .../__snapshots__/TextEstimated.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../Tokens/__snapshots__/index.test.tsx.snap | 718 +-- .../__snapshots__/index.test.tsx.snap | 14 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../__snapshots__/index.test.tsx.snap | 14 +- .../__snapshots__/UpdateNeeded.test.tsx.snap | 120 +- .../__snapshots__/index.test.js.snap | 6 +- .../__snapshots__/WalletAccount.test.tsx.snap | 56 +- .../__snapshots__/WarningAlert.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 14 +- .../__snapshots__/index.test.tsx.snap | 18 +- .../__snapshots__/index.test.tsx.snap | 6 +- .../__snapshots__/index.test.tsx.snap | 236 +- .../__snapshots__/index.test.tsx.snap | 264 +- .../__snapshots__/AddAsset.test.tsx.snap | 112 +- .../__snapshots__/index.test.tsx.snap | 18 +- .../Asset/__snapshots__/index.test.js.snap | 16 +- .../__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 | 110 +- .../__snapshots__/index.test.tsx.snap | 348 +- .../__snapshots__/index.test.tsx.snap | 158 +- .../__snapshots__/index.test.tsx.snap | 112 +- .../__snapshots__/Scan.test.tsx.snap | 2 +- .../__snapshots__/index.test.tsx.snap | 128 +- .../__snapshots__/index.test.tsx.snap | 100 +- .../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 +- .../__snapshots__/TestScreen1.test.js.snap | 74 +- .../__snapshots__/TestScreen2.test.js.snap | 144 +- .../__snapshots__/TestScreen3.test.js.snap | 214 +- .../NetworkSelector.test.tsx.snap | 236 +- .../__snapshots__/index.test.tsx.snap | 50 +- .../__snapshots__/index.test.tsx.snap | 158 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.js.snap | 40 +- .../__snapshots__/index.test.js.snap | 36 +- .../__snapshots__/index.test.tsx.snap | 6 +- .../__snapshots__/index.test.tsx.snap | 76 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../Root/__snapshots__/index.test.tsx.snap | 74 +- .../EthSignFriction.test.tsx.snap | 24 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 112 +- .../AmbiguousAddressSheet.test.tsx.snap | 134 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 36 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 194 +- .../__snapshots__/index.test.tsx.snap | 20 +- .../BlockaidSettings.test.tsx.snap | 18 +- .../SecuritySettings.test.tsx.snap | 476 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../ShowDisplayNFTMediaSheet.test.tsx.snap | 136 +- .../ShowIpfsGatewaySheet.test.tsx.snap | 136 +- .../__snapshots__/index.test.tsx.snap | 6 +- .../__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/index.test.js.snap | 8 +- .../Wallet/__snapshots__/index.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 314 +- .../__snapshots__/index.test.tsx.snap | 14 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../Approve/__snapshots__/index.test.tsx.snap | 8 +- .../Send/__snapshots__/index.test.tsx.snap | 102 +- .../AddressElement.test.tsx.snap | 28 +- .../__snapshots__/AddressFrom.test.tsx.snap | 62 +- .../__snapshots__/AddressList.test.tsx.snap | 40 +- .../__snapshots__/AddressTo.test.tsx.snap | 34 +- .../Amount/__snapshots__/index.test.tsx.snap | 1958 ++++---- .../Confirm/__snapshots__/index.test.tsx.snap | 406 +- .../CustomGasModal.test.tsx.snap | 228 +- .../__snapshots__/index.test.tsx.snap | 18 +- .../SendTo/__snapshots__/SendTo.test.tsx.snap | 8 +- .../__snapshots__/index.test.tsx.snap | 54 +- .../__snapshots__/index.test.tsx.snap | 32 +- .../ApprovalResult.test.tsx.snap | 64 +- .../TemplateConfirmation.test.tsx.snap | 20 +- .../ApproveTransactionHeader.test.tsx.snap | 146 +- .../__snapshots__/index.test.tsx.snap | 8 +- .../BlockaidBanner.test.tsx.snap | 150 +- .../__snapshots__/index.test.tsx.snap | 32 +- .../EditGasFeeLegacyUpdate.test.tsx.snap | 238 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../__snapshots__/index.test.tsx.snap | 4 +- .../__snapshots__/index.test.tsx.snap | 18 +- .../Root/__snapshots__/Root.test.tsx.snap | 132 +- .../__snapshots__/index.test.tsx.snap | 10 +- .../TransactionBlockaidBanner.test.tsx.snap | 32 +- .../__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 | 456 +- .../__snapshots__/index.test.tsx.snap | 330 +- .../__snapshots__/index.test.tsx.snap | 12 +- .../hooks/useMetrics/useMetrics.test.tsx | 2 +- .../ppom/__snapshots__/PPOMView.test.tsx.snap | 14 +- package.json | 6 +- yarn.lock | 765 +-- 297 files changed, 19417 insertions(+), 19414 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 560e0d73445..cceace09bb7 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 85b16cf7dfc..27acbbbb0c0 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 > , `; @@ -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 78b955c6b01..468386b1b9b 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 d9197f745b8..5df6f17dbda 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`] = ` @@ -123,7 +123,7 @@ exports[`AccountApproval should render correctly 1`] = ` @@ -434,7 +434,7 @@ Array [ scrollTo={null} statusBarTranslucent={false} supportedOrientations={ - Array [ + [ "portrait", "landscape", ] @@ -450,8 +450,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 d66f56a1a8b..ddcf1b99c5f 100644 --- a/app/components/UI/ActionModal/__snapshots__/index.test.tsx.snap +++ b/app/components/UI/ActionModal/__snapshots__/index.test.tsx.snap @@ -19,7 +19,7 @@ exports[`ActionModal should render correctly 1`] = ` scrollTo={null} statusBarTranslucent={false} 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 d5272812ea6..8c5548d987f 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`] = ` @@ -67,8 +67,8 @@ exports[`AddCustomToken render matches previous snapshot 1`] = ` @@ -525,20 +525,20 @@ exports[`AddressInputs AddressTo should match default snapshot 1`] = ` @@ -633,13 +633,13 @@ exports[`AddressInputs AddressTo should match default snapshot 1`] = ` exports[`AddressInputs AddressTo should match snapshot when layout is vertical 1`] = ` @@ -796,20 +796,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 94870e6bbfc..cbc727b950a 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`] = ` diff --git a/app/components/UI/AnimatedTransactionModal/__snapshots__/index.test.tsx.snap b/app/components/UI/AnimatedTransactionModal/__snapshots__/index.test.tsx.snap index fb14f86d923..822320a3a39 100644 --- a/app/components/UI/AnimatedTransactionModal/__snapshots__/index.test.tsx.snap +++ b/app/components/UI/AnimatedTransactionModal/__snapshots__/index.test.tsx.snap @@ -4,22 +4,22 @@ exports[`AnimatedTransactionModal should render correctly 1`] = ` @@ -72,7 +72,7 @@ exports[`BrowserBottomBar should render correctly 1`] = ` disabled={true} onPress={[Function]} style={ - Object { + { "alignItems": "center", "flex": 1, "height": 24, @@ -88,28 +88,28 @@ exports[`BrowserBottomBar should render correctly 1`] = ` @@ -119,7 +119,7 @@ exports[`BrowserBottomBar should render correctly 1`] = ` @@ -161,7 +161,7 @@ exports[`BrowserBottomBar should render correctly 1`] = ` @@ -255,7 +255,7 @@ exports[`BrowserBottomBar should render correctly 1`] = ` diff --git a/app/components/UI/Button/__snapshots__/index.test.tsx.snap b/app/components/UI/Button/__snapshots__/index.test.tsx.snap index 2b9458d5c9f..c594c3f4408 100644 --- a/app/components/UI/Button/__snapshots__/index.test.tsx.snap +++ b/app/components/UI/Button/__snapshots__/index.test.tsx.snap @@ -4,8 +4,8 @@ exports[`Button should render correctly 1`] = ` @@ -510,14 +510,14 @@ exports[`CollectibleModal should render correctly 1`] = ` @@ -230,7 +230,7 @@ exports[`DrawerView should render correctly 1`] = ` @@ -343,7 +343,7 @@ exports[`DrawerView should render correctly 1`] = ` @@ -437,7 +437,7 @@ exports[`DrawerView should render correctly 1`] = ` @@ -505,8 +505,8 @@ exports[`DrawerView should render correctly 1`] = ` @@ -560,8 +560,8 @@ exports[`DrawerView should render correctly 1`] = ` @@ -628,8 +628,8 @@ exports[`DrawerView should render correctly 1`] = ` @@ -683,8 +683,8 @@ exports[`DrawerView should render correctly 1`] = ` @@ -738,8 +738,8 @@ exports[`DrawerView should render correctly 1`] = ` `; diff --git a/app/components/UI/LedgerModals/Steps/__snapshots__/OpenETHAppStep.test.tsx.snap b/app/components/UI/LedgerModals/Steps/__snapshots__/OpenETHAppStep.test.tsx.snap index 67892884732..bc885b3f21e 100644 --- a/app/components/UI/LedgerModals/Steps/__snapshots__/OpenETHAppStep.test.tsx.snap +++ b/app/components/UI/LedgerModals/Steps/__snapshots__/OpenETHAppStep.test.tsx.snap @@ -1,16 +1,16 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`OpenETHAppStep matches snapshot 1`] = ` -Array [ +[ , , @@ -42,22 +42,22 @@ exports[`NavbarBrowserTitle should render correctly 1`] = ` @@ -66,7 +66,7 @@ exports[`NavbarBrowserTitle 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 b4e2d1c97bb..f8ea23e7a89 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`] = ` @@ -487,7 +487,7 @@ exports[`OptinMetrics should render correctly 1`] = ` @@ -545,7 +545,7 @@ exports[`OptinMetrics should render correctly 1`] = ` @@ -603,7 +603,7 @@ exports[`OptinMetrics should render correctly 1`] = ` @@ -663,7 +663,7 @@ exports[`OptinMetrics should render correctly 1`] = ` @@ -723,7 +723,7 @@ exports[`OptinMetrics 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 81c635885bf..c9c1de05509 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`] = ` @@ -73,7 +73,7 @@ exports[`PhishingModal should render correctly 1`] = ` @@ -523,15 +523,15 @@ exports[`BuildQuote View Crypto Currency Data renders a special error page if cr @@ -1261,15 +1261,15 @@ exports[`BuildQuote View Crypto Currency Data renders a special error page if cr @@ -1999,15 +1999,15 @@ exports[`BuildQuote View Crypto Currency Data renders an error page when there i @@ -3609,15 +3609,15 @@ exports[`BuildQuote View Fiat Currency Data renders an error page when there is @@ -5219,15 +5219,15 @@ exports[`BuildQuote View Payment Method Data renders an error page when there is @@ -6829,15 +6829,15 @@ exports[`BuildQuote View Regions data renders an error page when there is a regi @@ -8548,7 +8548,7 @@ exports[`BuildQuote View renders correctly 1`] = ` @@ -8637,8 +8637,8 @@ exports[`BuildQuote View renders correctly 1`] = ` @@ -8982,8 +8982,8 @@ exports[`BuildQuote View renders correctly 1`] = ` @@ -9340,8 +9340,8 @@ exports[`BuildQuote View renders correctly 1`] = ` @@ -9522,8 +9522,8 @@ exports[`BuildQuote View renders correctly 1`] = ` @@ -9657,8 +9657,8 @@ exports[`BuildQuote View renders correctly 1`] = ` @@ -10960,8 +10960,8 @@ exports[`BuildQuote View renders correctly 1`] = ` @@ -11785,7 +11785,7 @@ exports[`BuildQuote View renders correctly 2`] = ` @@ -11873,7 +11873,7 @@ exports[`BuildQuote View renders correctly 2`] = ` @@ -11969,8 +11969,8 @@ exports[`BuildQuote View renders correctly 2`] = ` @@ -12314,8 +12314,8 @@ exports[`BuildQuote View renders correctly 2`] = ` @@ -12706,8 +12706,8 @@ exports[`BuildQuote View renders correctly 2`] = ` @@ -12841,8 +12841,8 @@ exports[`BuildQuote View renders correctly 2`] = ` @@ -14209,8 +14209,8 @@ exports[`BuildQuote View renders correctly 2`] = ` @@ -14925,15 +14925,15 @@ exports[`BuildQuote View renders correctly when sdkError is present 1`] = ` @@ -15634,15 +15634,15 @@ exports[`BuildQuote View renders correctly when sdkError is present 2`] = ` @@ -2295,15 +2295,15 @@ exports[`GetStarted renders correctly when sdkError is present 1`] = ` { fireEvent.press(lineaNetworkText); expect(Engine.context.NetworkController.setProviderType.mock.calls) .toMatchInlineSnapshot(` - Array [ - Array [ + [ + [ "linea-mainnet", ], ] @@ -286,16 +286,16 @@ describe('NetworkSwitcher View', () => { fireEvent.press(polygonNetworkTest); expect(Engine.context.NetworkController.setActiveNetwork.mock.calls) .toMatchInlineSnapshot(` - Array [ - Array [ + [ + [ "networkId1", ], ] `); expect(Engine.context.CurrencyRateController.updateExchangeRate.mock.calls) .toMatchInlineSnapshot(` - Array [ - Array [ + [ + [ "MATIC", ], ] @@ -366,8 +366,8 @@ describe('NetworkSwitcher View', () => { it('navigates on supported network', async () => { render(NetworkSwitcher, '1'); expect(mockNavigate.mock.calls).toMatchInlineSnapshot(` - Array [ - Array [ + [ + [ "GetStarted", ], ] diff --git a/app/components/UI/Ramp/Views/NetworkSwitcher/__snapshots__/NetworkSwitcher.test.tsx.snap b/app/components/UI/Ramp/Views/NetworkSwitcher/__snapshots__/NetworkSwitcher.test.tsx.snap index f0bdfa34ff2..f38fe2b4ad7 100644 --- a/app/components/UI/Ramp/Views/NetworkSwitcher/__snapshots__/NetworkSwitcher.test.tsx.snap +++ b/app/components/UI/Ramp/Views/NetworkSwitcher/__snapshots__/NetworkSwitcher.test.tsx.snap @@ -3,7 +3,7 @@ exports[`NetworkSwitcher View renders and dismisses network modal when pressing add button 1`] = ` @@ -8279,15 +8279,15 @@ exports[`NetworkSwitcher View renders correctly with errors 1`] = ` @@ -8967,15 +8967,15 @@ exports[`NetworkSwitcher View renders correctly with errors 2`] = ` @@ -9655,15 +9655,15 @@ exports[`NetworkSwitcher View renders correctly with no data 1`] = ` { it('sends analytics events when an order is loaded', () => { render(OrderDetails); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "ONRAMP_PURCHASE_DETAILS_VIEWED", - Object { + { "chain_id_destination": "1", "currency_destination": "ETH", "currency_source": "USD", @@ -260,9 +260,9 @@ describe('OrderDetails', () => { render(OrderDetails, [testOrder]); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "OFFRAMP_PURCHASE_DETAILS_VIEWED", - Object { + { "chain_id_source": "1", "currency_destination": "USD", "currency_source": "ETH", diff --git a/app/components/UI/Ramp/Views/OrderDetails/__snapshots__/OrderDetails.test.tsx.snap b/app/components/UI/Ramp/Views/OrderDetails/__snapshots__/OrderDetails.test.tsx.snap index 1456aeecdf5..d26a8cc2998 100644 --- a/app/components/UI/Ramp/Views/OrderDetails/__snapshots__/OrderDetails.test.tsx.snap +++ b/app/components/UI/Ramp/Views/OrderDetails/__snapshots__/OrderDetails.test.tsx.snap @@ -3,7 +3,7 @@ exports[`OrderDetails renders a cancelled order 1`] = ` @@ -2454,26 +2454,26 @@ exports[`OrderDetails renders a completed order 1`] = ` @@ -4440,26 +4440,26 @@ exports[`OrderDetails renders a created order 1`] = ` @@ -8273,26 +8273,26 @@ exports[`OrderDetails renders a pending order 1`] = ` @@ -10567,15 +10567,15 @@ exports[`OrderDetails renders an error screen if a CREATED order cannot be polle @@ -11292,26 +11292,26 @@ exports[`OrderDetails renders non-transacted orders 1`] = ` @@ -13261,26 +13261,26 @@ exports[`OrderDetails renders the support links if the provider has them 1`] = ` @@ -15355,26 +15355,26 @@ exports[`OrderDetails renders transacted orders that do not have timeDescription @@ -17243,26 +17243,26 @@ exports[`OrderDetails renders transacted orders that have timeDescriptionPending { fireEvent.press(screen.getByRole('button', { name: /Sold ETH/ })); expect(mockNavigate).toHaveBeenCalled(); expect(mockNavigate.mock.calls).toMatchInlineSnapshot(` - Array [ - Array [ + [ + [ "OrderDetails", - Object { + { "orderId": "test-order-2", }, ], diff --git a/app/components/UI/Ramp/Views/OrdersList/__snapshots__/OrdersList.test.tsx.snap b/app/components/UI/Ramp/Views/OrdersList/__snapshots__/OrdersList.test.tsx.snap index eb15ac6f751..d8e5c80f43a 100644 --- a/app/components/UI/Ramp/Views/OrdersList/__snapshots__/OrdersList.test.tsx.snap +++ b/app/components/UI/Ramp/Views/OrdersList/__snapshots__/OrdersList.test.tsx.snap @@ -7,7 +7,7 @@ exports[`OrdersList renders buy only correctly when pressing buy filter 1`] = ` } data={ - Array [ - Object { + [ + { "account": "0x0", "amount": "34.23", "createdAt": 1697242033399, "cryptoAmount": "0.01231324", "cryptocurrency": "ETH", "currency": "USD", - "data": Object { - "cryptoCurrency": Object { + "data": { + "cryptoCurrency": { "decimals": 18, "name": "Ethereum", "symbol": "ETH", }, - "provider": Object { + "provider": { "name": "Test Provider", }, }, @@ -75,20 +75,20 @@ exports[`OrdersList renders buy only correctly when pressing buy filter 1`] = ` "provider": "AGGREGATOR", "state": "COMPLETED", }, - Object { + { "account": "0x0", "amount": "34.23", "createdAt": 1697242033399, "cryptoAmount": "0.01231324", "cryptocurrency": "ETH", "currency": "USD", - "data": Object { - "cryptoCurrency": Object { + "data": { + "cryptoCurrency": { "decimals": 18, "name": "Ethereum", "symbol": "ETH", }, - "provider": Object { + "provider": { "name": "Test Provider", }, }, @@ -98,17 +98,17 @@ exports[`OrdersList renders buy only correctly when pressing buy filter 1`] = ` "provider": "AGGREGATOR", "state": "PENDING", }, - Object { + { "account": "0x0", "cryptocurrency": "ETH", "currency": "USD", - "data": Object { - "cryptoCurrency": Object { + "data": { + "cryptoCurrency": { "decimals": 18, "name": "Ethereum", "symbol": "ETH", }, - "provider": Object { + "provider": { "name": "Test Provider", }, }, @@ -133,8 +133,8 @@ exports[`OrdersList renders buy only correctly when pressing buy filter 1`] = ` removeClippedSubviews={false} renderItem={[Function]} scrollEventThrottle={50} - stickyHeaderIndices={Array []} - viewabilityConfigCallbackPairs={Array []} + stickyHeaderIndices={[]} + viewabilityConfigCallbackPairs={[]} > } data={ - Array [ - Object { + [ + { "account": "0x0", "amount": "34.23", "createdAt": 1697242033399, "cryptoAmount": "0.01231324", "cryptocurrency": "ETH", "currency": "USD", - "data": Object { - "cryptoCurrency": Object { + "data": { + "cryptoCurrency": { "decimals": 18, "name": "Ethereum", "symbol": "ETH", }, - "provider": Object { + "provider": { "name": "Test Provider", }, }, @@ -1212,20 +1212,20 @@ exports[`OrdersList renders correctly 1`] = ` "provider": "AGGREGATOR", "state": "COMPLETED", }, - Object { + { "account": "0x0", "amount": "34.23", "createdAt": 1697242033399, "cryptoAmount": "0.01231324", "cryptocurrency": "ETH", "currency": "USD", - "data": Object { - "cryptoCurrency": Object { + "data": { + "cryptoCurrency": { "decimals": 18, "name": "Ethereum", "symbol": "ETH", }, - "provider": Object { + "provider": { "name": "Test Provider", }, }, @@ -1235,20 +1235,20 @@ exports[`OrdersList renders correctly 1`] = ` "provider": "AGGREGATOR", "state": "PENDING", }, - Object { + { "account": "0x0", "amount": "34.23", "createdAt": 1697242033399, "cryptoAmount": "0.01231324", "cryptocurrency": "ETH", "currency": "USD", - "data": Object { - "cryptoCurrency": Object { + "data": { + "cryptoCurrency": { "decimals": 18, "name": "Ethereum", "symbol": "ETH", }, - "provider": Object { + "provider": { "name": "Test Provider", }, }, @@ -1258,17 +1258,17 @@ exports[`OrdersList renders correctly 1`] = ` "provider": "AGGREGATOR", "state": "PENDING", }, - Object { + { "account": "0x0", "cryptocurrency": "ETH", "currency": "USD", - "data": Object { - "cryptoCurrency": Object { + "data": { + "cryptoCurrency": { "decimals": 18, "name": "Ethereum", "symbol": "ETH", }, - "provider": Object { + "provider": { "name": "Test Provider", }, }, @@ -1293,8 +1293,8 @@ exports[`OrdersList renders correctly 1`] = ` removeClippedSubviews={false} renderItem={[Function]} scrollEventThrottle={50} - stickyHeaderIndices={Array []} - viewabilityConfigCallbackPairs={Array []} + stickyHeaderIndices={[]} + viewabilityConfigCallbackPairs={[]} > } - data={Array []} + data={[]} getItem={[Function]} getItemCount={[Function]} keyExtractor={[Function]} @@ -2662,8 +2662,8 @@ exports[`OrdersList renders empty buy message 1`] = ` removeClippedSubviews={false} renderItem={[Function]} scrollEventThrottle={50} - stickyHeaderIndices={Array []} - viewabilityConfigCallbackPairs={Array []} + stickyHeaderIndices={[]} + viewabilityConfigCallbackPairs={[]} > } - data={Array []} + data={[]} getItem={[Function]} getItemCount={[Function]} keyExtractor={[Function]} @@ -2913,8 +2913,8 @@ exports[`OrdersList renders empty sell message 1`] = ` removeClippedSubviews={false} renderItem={[Function]} scrollEventThrottle={50} - stickyHeaderIndices={Array []} - viewabilityConfigCallbackPairs={Array []} + stickyHeaderIndices={[]} + viewabilityConfigCallbackPairs={[]} > } data={ - Array [ - Object { + [ + { "account": "0x0", "amount": "34.23", "createdAt": 1697242033399, "cryptoAmount": "0.01231324", "cryptocurrency": "ETH", "currency": "USD", - "data": Object { - "cryptoCurrency": Object { + "data": { + "cryptoCurrency": { "decimals": 18, "name": "Ethereum", "symbol": "ETH", }, - "provider": Object { + "provider": { "name": "Test Provider", }, }, @@ -3190,8 +3190,8 @@ exports[`OrdersList renders sell only correctly when pressing sell filter 1`] = removeClippedSubviews={false} renderItem={[Function]} scrollEventThrottle={50} - stickyHeaderIndices={Array []} - viewabilityConfigCallbackPairs={Array []} + stickyHeaderIndices={[]} + viewabilityConfigCallbackPairs={[]} > } data={ - Array [ - Object { + [ + { "account": "0x0", "amount": "34.23", "createdAt": 1697242033399, "cryptoAmount": "0.01231324", "cryptocurrency": "ETH", "currency": "USD", - "data": Object { - "cryptoCurrency": Object { + "data": { + "cryptoCurrency": { "decimals": 18, "name": "Ethereum", "symbol": "ETH", }, - "provider": Object { + "provider": { "name": "Test Provider", }, }, @@ -3736,8 +3736,8 @@ exports[`OrdersList resets filter to all after other filter was set 1`] = ` removeClippedSubviews={false} renderItem={[Function]} scrollEventThrottle={50} - stickyHeaderIndices={Array []} - viewabilityConfigCallbackPairs={Array []} + stickyHeaderIndices={[]} + viewabilityConfigCallbackPairs={[]} > } data={ - Array [ - Object { + [ + { "account": "0x0", "amount": "34.23", "createdAt": 1697242033399, "cryptoAmount": "0.01231324", "cryptocurrency": "ETH", "currency": "USD", - "data": Object { - "cryptoCurrency": Object { + "data": { + "cryptoCurrency": { "decimals": 18, "name": "Ethereum", "symbol": "ETH", }, - "provider": Object { + "provider": { "name": "Test Provider", }, }, @@ -4265,20 +4265,20 @@ exports[`OrdersList resets filter to all after other filter was set 2`] = ` "provider": "AGGREGATOR", "state": "COMPLETED", }, - Object { + { "account": "0x0", "amount": "34.23", "createdAt": 1697242033399, "cryptoAmount": "0.01231324", "cryptocurrency": "ETH", "currency": "USD", - "data": Object { - "cryptoCurrency": Object { + "data": { + "cryptoCurrency": { "decimals": 18, "name": "Ethereum", "symbol": "ETH", }, - "provider": Object { + "provider": { "name": "Test Provider", }, }, @@ -4288,20 +4288,20 @@ exports[`OrdersList resets filter to all after other filter was set 2`] = ` "provider": "AGGREGATOR", "state": "PENDING", }, - Object { + { "account": "0x0", "amount": "34.23", "createdAt": 1697242033399, "cryptoAmount": "0.01231324", "cryptocurrency": "ETH", "currency": "USD", - "data": Object { - "cryptoCurrency": Object { + "data": { + "cryptoCurrency": { "decimals": 18, "name": "Ethereum", "symbol": "ETH", }, - "provider": Object { + "provider": { "name": "Test Provider", }, }, @@ -4311,17 +4311,17 @@ exports[`OrdersList resets filter to all after other filter was set 2`] = ` "provider": "AGGREGATOR", "state": "PENDING", }, - Object { + { "account": "0x0", "cryptocurrency": "ETH", "currency": "USD", - "data": Object { - "cryptoCurrency": Object { + "data": { + "cryptoCurrency": { "decimals": 18, "name": "Ethereum", "symbol": "ETH", }, - "provider": Object { + "provider": { "name": "Test Provider", }, }, @@ -4346,8 +4346,8 @@ exports[`OrdersList resets filter to all after other filter was set 2`] = ` removeClippedSubviews={false} renderItem={[Function]} scrollEventThrottle={50} - stickyHeaderIndices={Array []} - viewabilityConfigCallbackPairs={Array []} + stickyHeaderIndices={[]} + viewabilityConfigCallbackPairs={[]} > { ); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "ONRAMP_PAYMENT_METHOD_SELECTED", - Object { - "available_payment_method_ids": Array [ + { + "available_payment_method_ids": [ "/payments/instant-bank-transfer", "/payments/apple-pay", "/payments/debit-credit-card", @@ -337,10 +337,10 @@ describe('PaymentMethods View', () => { render(PaymentMethods); fireEvent.press(screen.getByRole('button', { name: 'Debit or Credit' })); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "OFFRAMP_PAYMENT_METHOD_SELECTED", - Object { - "available_payment_method_ids": Array [ + { + "available_payment_method_ids": [ "/payments/instant-bank-transfer", "/payments/apple-pay", "/payments/debit-credit-card", @@ -358,10 +358,10 @@ describe('PaymentMethods View', () => { fireEvent.press(screen.getByRole('button', { name: 'Continue to amount' })); expect(mockNavigate).toHaveBeenCalledWith(...createBuildQuoteNavDetails()); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "ONRAMP_CONTINUE_TO_AMOUNT_CLICKED", - Object { - "available_payment_method_ids": Array [ + { + "available_payment_method_ids": [ "/payments/instant-bank-transfer", "/payments/apple-pay", "/payments/debit-credit-card", @@ -383,10 +383,10 @@ describe('PaymentMethods View', () => { render(PaymentMethods); fireEvent.press(screen.getByRole('button', { name: 'Continue to amount' })); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "OFFRAMP_CONTINUE_TO_AMOUNT_CLICKED", - Object { - "available_payment_method_ids": Array [ + { + "available_payment_method_ids": [ "/payments/instant-bank-transfer", "/payments/apple-pay", "/payments/debit-credit-card", diff --git a/app/components/UI/Ramp/Views/PaymentMethods/__snapshots__/PaymentMethods.test.tsx.snap b/app/components/UI/Ramp/Views/PaymentMethods/__snapshots__/PaymentMethods.test.tsx.snap index e0113fae264..fa15e9c869a 100644 --- a/app/components/UI/Ramp/Views/PaymentMethods/__snapshots__/PaymentMethods.test.tsx.snap +++ b/app/components/UI/Ramp/Views/PaymentMethods/__snapshots__/PaymentMethods.test.tsx.snap @@ -3,7 +3,7 @@ exports[`PaymentMethods View renders correctly 1`] = ` @@ -577,8 +577,8 @@ exports[`PaymentMethods View renders correctly 1`] = ` @@ -835,8 +835,8 @@ exports[`PaymentMethods View renders correctly 1`] = ` @@ -1059,8 +1059,8 @@ exports[`PaymentMethods View renders correctly 1`] = ` @@ -1332,8 +1332,8 @@ exports[`PaymentMethods View renders correctly 1`] = ` @@ -1562,8 +1562,8 @@ exports[`PaymentMethods View renders correctly 1`] = ` @@ -1835,8 +1835,8 @@ exports[`PaymentMethods View renders correctly 1`] = ` @@ -2641,8 +2641,8 @@ exports[`PaymentMethods View renders correctly for sell 1`] = ` @@ -2899,8 +2899,8 @@ exports[`PaymentMethods View renders correctly for sell 1`] = ` @@ -3123,8 +3123,8 @@ exports[`PaymentMethods View renders correctly for sell 1`] = ` @@ -3396,8 +3396,8 @@ exports[`PaymentMethods View renders correctly for sell 1`] = ` @@ -3626,8 +3626,8 @@ exports[`PaymentMethods View renders correctly for sell 1`] = ` @@ -3899,8 +3899,8 @@ exports[`PaymentMethods View renders correctly for sell 1`] = ` @@ -6086,15 +6086,15 @@ exports[`PaymentMethods View renders correctly with empty data 1`] = ` @@ -6797,15 +6797,15 @@ exports[`PaymentMethods View renders correctly with empty data for sell 1`] = ` @@ -7508,15 +7508,15 @@ exports[`PaymentMethods View renders correctly with error 1`] = ` @@ -9706,8 +9706,8 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim @@ -9964,8 +9964,8 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim @@ -10188,8 +10188,8 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim @@ -10461,8 +10461,8 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim @@ -10691,8 +10691,8 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim @@ -10964,8 +10964,8 @@ exports[`PaymentMethods View renders correctly with payment method with disclaim @@ -11774,15 +11774,15 @@ exports[`PaymentMethods View renders correctly with sdkError 1`] = ` @@ -12514,8 +12514,8 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = @@ -12772,8 +12772,8 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = @@ -12996,8 +12996,8 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = @@ -13269,8 +13269,8 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = @@ -13499,8 +13499,8 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = @@ -13772,8 +13772,8 @@ exports[`PaymentMethods View renders correctly with show back button false 1`] = { jest.clearAllTimers(); }); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "ONRAMP_QUOTES_EXPANDED", - Object { + { "amount": 50, "chain_id_destination": "1", "currency_destination": "ETH", @@ -262,7 +262,7 @@ describe('Quotes', () => { "payment_method_id": "/payment-methods/test-payment-method", "previously_used_count": 0, "provider_onramp_first": "Banxa (Staging)", - "provider_onramp_list": Array [ + "provider_onramp_list": [ "Banxa (Staging)", "MoonPay (Staging)", "Transak (Staging)", @@ -334,9 +334,9 @@ describe('Quotes', () => { url: 'https://test-url.on-ramp.metamask', }); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "ONRAMP_PROVIDER_SELECTED", - Object { + { "chain_id_destination": "1", "crypto_out": 0.0162, "currency_destination": "ETH", @@ -363,9 +363,9 @@ describe('Quotes', () => { await simulateQuoteSelection(ProviderBuyFeatureBrowserEnum.AppBrowser); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "OFFRAMP_PROVIDER_SELECTED", - Object { + { "chain_id_source": "1", "currency_destination": "USD", "currency_source": "ETH", @@ -397,9 +397,9 @@ describe('Quotes', () => { ); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "ONRAMP_PROVIDER_SELECTED", - Object { + { "chain_id_destination": "1", "crypto_out": 0.0162, "currency_destination": "ETH", @@ -426,9 +426,9 @@ describe('Quotes', () => { await simulateQuoteSelection(ProviderBuyFeatureBrowserEnum.InAppOsBrowser); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "OFFRAMP_PROVIDER_SELECTED", - Object { + { "chain_id_source": "1", "currency_destination": "USD", "currency_source": "ETH", @@ -525,10 +525,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, @@ -541,7 +541,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)", ], @@ -549,9 +549,9 @@ describe('Quotes', () => { "results_count": 2, }, ], - Array [ + [ "ONRAMP_QUOTE_ERROR", - Object { + { "amount": 50, "chain_id_destination": "1", "currency_destination": "ETH", @@ -578,10 +578,10 @@ describe('Quotes', () => { jest.clearAllTimers(); }); expect(mockTrackEvent.mock.calls).toMatchInlineSnapshot(` - Array [ - Array [ + [ + [ "OFFRAMP_QUOTES_RECEIVED", - Object { + { "amount": 50, "average_fiat_out": 0.016671, "average_gas_fee": 1.32, @@ -594,7 +594,7 @@ describe('Quotes', () => { "payment_method_id": "/payment-methods/test-payment-method", "provider_offramp_first": "Banxa (Staging)", "provider_offramp_last": "MoonPay (Staging)", - "provider_offramp_list": Array [ + "provider_offramp_list": [ "Banxa (Staging)", "MoonPay (Staging)", ], @@ -602,9 +602,9 @@ describe('Quotes', () => { "results_count": 2, }, ], - Array [ + [ "OFFRAMP_QUOTE_ERROR", - Object { + { "amount": 50, "chain_id_source": "1", "currency_destination": "USD", 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 f55c64c4665..efb779e1b7d 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 [ +[ , , @@ -2238,12 +2238,12 @@ exports[`Quotes renders correctly after animation with quotes 1`] = ` @@ -2578,12 +2578,12 @@ exports[`Quotes renders correctly after animation with quotes 1`] = ` @@ -3870,12 +3870,12 @@ exports[`Quotes renders correctly after animation with quotes and expanded 2`] = @@ -4210,12 +4210,12 @@ exports[`Quotes renders correctly after animation with quotes and expanded 2`] = @@ -4578,12 +4578,12 @@ exports[`Quotes renders correctly after animation with quotes and expanded 2`] = @@ -5429,15 +5429,15 @@ exports[`Quotes renders correctly after animation without quotes 1`] = ` @@ -6224,15 +6224,15 @@ exports[`Quotes renders correctly when fetching quotes errors 1`] = ` @@ -7019,15 +7019,15 @@ exports[`Quotes renders correctly with sdkError 1`] = ` @@ -7814,15 +7814,15 @@ exports[`Quotes renders quotes expired screen 1`] = ` @@ -688,8 +688,8 @@ exports[`Regions View renders correctly 1`] = ` @@ -1942,15 +1942,15 @@ exports[`Regions View renders correctly with error 1`] = ` @@ -3240,15 +3240,15 @@ exports[`Regions View renders correctly with sdkError 1`] = ` @@ -4117,8 +4117,8 @@ exports[`Regions View renders correctly with selectedRegion 1`] = ` @@ -4942,8 +4942,8 @@ exports[`Regions View renders correctly with unsupportedRegion 1`] = ` @@ -5215,15 +5215,15 @@ exports[`Regions View renders correctly with unsupportedRegion 1`] = ` @@ -6146,8 +6146,8 @@ exports[`Regions View renders correctly with unsupportedRegion 2`] = ` @@ -6419,15 +6419,15 @@ exports[`Regions View renders correctly with unsupportedRegion 2`] = ` @@ -7350,8 +7350,8 @@ exports[`Regions View renders regions modal when pressing select button 1`] = ` @@ -7824,7 +7824,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", @@ -7837,8 +7837,8 @@ exports[`Regions View renders regions modal when pressing select button 1`] = ` { it('calls analytics when rendering', async () => { render(SendTransaction); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "OFFRAMP_SEND_CRYPTO_PROMPT_VIEWED", - Object { + { "chain_id_source": 1, "crypto_amount": "0.012361263", "currency_destination": "USD", @@ -402,15 +402,15 @@ describe('SendTransaction View', () => { fireEvent.press(nextButton); expect(mockAddTransaction).toBeCalledTimes(1); expect(mockAddTransaction.mock.calls).toMatchInlineSnapshot(` - Array [ - Array [ - Object { + [ + [ + { "chainId": "0x1", "from": "0x1234", "to": "0x34256", "value": "0x2bea80d2171600", }, - Object { + { "deviceConfirmedOn": "metamask_mobile", }, ], @@ -423,9 +423,9 @@ describe('SendTransaction View', () => { const nextButton = screen.getByRole('button', { name: 'Next' }); fireEvent.press(nextButton); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "OFFRAMP_SEND_TRANSACTION_INVOKED", - Object { + { "chain_id_source": 1, "crypto_amount": "0.012361263", "currency_destination": "USD", @@ -446,15 +446,15 @@ describe('SendTransaction View', () => { fireEvent.press(nextButton); expect(mockAddTransaction).toBeCalledTimes(1); expect(mockAddTransaction.mock.calls).toMatchInlineSnapshot(` - Array [ - Array [ - Object { + [ + [ + { "data": "0xa9059cbb0000000000000000000000000000000000000000000000000000000000034256000000000000000000000000000000000000000000000000002bea80d2171600", "from": "0x1234", "to": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48", "value": "0x0", }, - Object { + { "deviceConfirmedOn": "metamask_mobile", }, ], @@ -471,9 +471,9 @@ describe('SendTransaction View', () => { await act(async () => fireEvent.press(nextButton)); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "OFFRAMP_SEND_TRANSACTION_CONFIRMED", - Object { + { "chain_id_source": 1, "crypto_amount": "0.012361263", "currency_destination": "USD", @@ -499,10 +499,10 @@ describe('SendTransaction View', () => { await act(async () => fireEvent.press(nextButton)); expect(mockDispatch).toBeCalledTimes(1); expect(mockDispatch.mock.calls).toMatchInlineSnapshot(` - Array [ - Array [ - Object { - "payload": Object { + [ + [ + { + "payload": { "orderId": "test-id-1", "txHash": "0x987654321", }, @@ -522,9 +522,9 @@ describe('SendTransaction View', () => { await act(async () => fireEvent.press(nextButton)); expect(mockTrackEvent.mock.lastCall).toMatchInlineSnapshot(` - Array [ + [ "OFFRAMP_SEND_TRANSACTION_REJECTED", - Object { + { "chain_id_source": 1, "crypto_amount": "0.012361263", "currency_destination": "USD", diff --git a/app/components/UI/Ramp/Views/SendTransaction/__snapshots__/SendTransaction.test.tsx.snap b/app/components/UI/Ramp/Views/SendTransaction/__snapshots__/SendTransaction.test.tsx.snap index 676b8d0579c..037c052f9d9 100644 --- a/app/components/UI/Ramp/Views/SendTransaction/__snapshots__/SendTransaction.test.tsx.snap +++ b/app/components/UI/Ramp/Views/SendTransaction/__snapshots__/SendTransaction.test.tsx.snap @@ -3,7 +3,7 @@ exports[`SendTransaction View renders correctly 1`] = ` @@ -691,7 +691,7 @@ exports[`SendTransaction View renders correctly 1`] = ` @@ -2241,7 +2241,7 @@ exports[`SendTransaction View renders correctly for token 1`] = ` @@ -1002,8 +1002,8 @@ exports[`Settings Activation Keys renders correctly when is loading 1`] = ` @@ -1162,8 +1162,8 @@ exports[`Settings Activation Keys renders correctly when is loading 1`] = ` @@ -5193,8 +5193,8 @@ exports[`Settings renders correctly for internal builds 1`] = ` @@ -5351,8 +5351,8 @@ exports[`Settings renders correctly for internal builds 1`] = ` { it('should return correct details for buy orders', () => { const pendingDetails = getNotificationDetails(mockOrder); expect(pendingDetails).toMatchInlineSnapshot(` - Object { + { "description": "This should only take a few minutes...", "duration": 5000, "status": "pending", @@ -465,7 +465,7 @@ describe('getNotificationDetails', () => { state: FIAT_ORDER_STATES.CANCELLED, }); expect(cancelledDetails).toMatchInlineSnapshot(` - Object { + { "description": "Verify your payment method and card support", "duration": 5000, "status": "cancelled", @@ -477,7 +477,7 @@ describe('getNotificationDetails', () => { state: FIAT_ORDER_STATES.FAILED, }); expect(failedDetails).toMatchInlineSnapshot(` - Object { + { "description": "Verify your payment method and card support", "duration": 5000, "status": "error", @@ -490,7 +490,7 @@ describe('getNotificationDetails', () => { state: FIAT_ORDER_STATES.COMPLETED, }); expect(completedDetails).toMatchInlineSnapshot(` - Object { + { "description": "Your ETH is now available", "duration": 5000, "status": "success", @@ -502,7 +502,7 @@ describe('getNotificationDetails', () => { it('should return correct details for sell orders', () => { const pendingDetails = getNotificationDetails(mockSellOrder); expect(pendingDetails).toMatchInlineSnapshot(` - Object { + { "description": "Your order is now being processed.", "duration": 5000, "status": "pending", @@ -514,7 +514,7 @@ describe('getNotificationDetails', () => { state: FIAT_ORDER_STATES.CANCELLED, }); expect(cancelledDetails).toMatchInlineSnapshot(` - Object { + { "description": "Your order couldn´t be completed.", "duration": 5000, "status": "cancelled", @@ -526,7 +526,7 @@ describe('getNotificationDetails', () => { state: FIAT_ORDER_STATES.FAILED, }); expect(failedDetails).toMatchInlineSnapshot(` - Object { + { "description": "Your order couldn´t be completed.", "duration": 5000, "status": "error", @@ -539,7 +539,7 @@ describe('getNotificationDetails', () => { state: FIAT_ORDER_STATES.COMPLETED, }); expect(completedDetails).toMatchInlineSnapshot(` - Object { + { "description": "Your order was successful!.", "duration": 5000, "status": "success", diff --git a/app/components/UI/ReceiveRequest/__snapshots__/index.test.tsx.snap b/app/components/UI/ReceiveRequest/__snapshots__/index.test.tsx.snap index 973f5e000e4..03b6f3b727b 100644 --- a/app/components/UI/ReceiveRequest/__snapshots__/index.test.tsx.snap +++ b/app/components/UI/ReceiveRequest/__snapshots__/index.test.tsx.snap @@ -3,8 +3,8 @@ exports[`ReceiveRequest should render correctly 1`] = ` @@ -272,7 +272,7 @@ exports[`SeedphraseModal should render correctly 1`] = ` @@ -87,7 +87,7 @@ exports[`SelectComponent should render correctly 1`] = ` scrollTo={null} statusBarTranslucent={false} supportedOrientations={ - Array [ + [ "portrait", "landscape", ] diff --git a/app/components/UI/SettingsNotification/__snapshots__/index.test.tsx.snap b/app/components/UI/SettingsNotification/__snapshots__/index.test.tsx.snap index b0d14e8b7f2..f564880b101 100644 --- a/app/components/UI/SettingsNotification/__snapshots__/index.test.tsx.snap +++ b/app/components/UI/SettingsNotification/__snapshots__/index.test.tsx.snap @@ -3,8 +3,8 @@ exports[`SettingsNotification should render correctly as notification 1`] = ` @@ -164,7 +164,7 @@ exports[`TabThumbnail should render correctly 1`] = ` @@ -189,7 +189,7 @@ exports[`Tabs should render correctly 1`] = ` @@ -329,14 +329,14 @@ exports[`Tabs 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, @@ -1541,7 +1541,7 @@ exports[`Tokens should render correctly 1`] = ` "name": "Ethereum", "symbol": "ETH", }, - Object { + { "address": "0x01", "balanceFiat": "$0", "decimals": 18, @@ -1564,7 +1564,7 @@ exports[`Tokens should render correctly 1`] = ` refreshControl={ @@ -1586,7 +1586,7 @@ exports[`Tokens should render correctly 1`] = ` > } data={ - Array [ - Object { + [ + { "address": "0x0", "balanceFiat": "< $0.01", "decimals": 18, @@ -2715,7 +2715,7 @@ exports[`Tokens should show all balance tokens when hideZeroBalanceTokens settin "name": "Ethereum", "symbol": "ETH", }, - Object { + { "address": "0x01", "balanceFiat": "$0", "decimals": 18, @@ -2723,7 +2723,7 @@ exports[`Tokens should show all balance tokens when hideZeroBalanceTokens settin "name": "Bat", "symbol": "BAT", }, - Object { + { "address": "0x02", "balanceFiat": "$0", "decimals": 18, @@ -2746,7 +2746,7 @@ exports[`Tokens should show all balance tokens when hideZeroBalanceTokens settin refreshControl={ @@ -2768,7 +2768,7 @@ exports[`Tokens should show all balance tokens when hideZeroBalanceTokens settin > @@ -849,7 +849,7 @@ exports[`AccountBackupStep1B 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 c2d6c0d562f..23e97d68171 100644 --- a/app/components/Views/GasEducationCarousel/__snapshots__/index.test.tsx.snap +++ b/app/components/Views/GasEducationCarousel/__snapshots__/index.test.tsx.snap @@ -3,14 +3,14 @@ exports[`GasEducationCarousel should render correctly 1`] = ` @@ -755,7 +755,7 @@ exports[`ImportFromSecretRecoveryPhrase should render correctly 1`] = ` @@ -440,7 +440,7 @@ exports[`ImportPrivateKey should render correctly 1`] = ` @@ -373,7 +373,7 @@ exports[`ImportPrivateKeySuccess should render correctly 1`] = ` @@ -406,7 +406,7 @@ exports[`ImportPrivateKeySuccess should render correctly 1`] = ` @@ -573,7 +573,7 @@ exports[`LedgerConnect render matches latest snapshot 1`] = ` scrollTo={null} statusBarTranslucent={false} supportedOrientations={ - Array [ + [ "portrait", "landscape", ] @@ -588,7 +588,7 @@ exports[`LedgerConnect render matches latest snapshot 1`] = ` diff --git a/app/components/Views/Login/__snapshots__/index.test.tsx.snap b/app/components/Views/Login/__snapshots__/index.test.tsx.snap index 2b2f874ab5e..867123d52e6 100644 --- a/app/components/Views/Login/__snapshots__/index.test.tsx.snap +++ b/app/components/Views/Login/__snapshots__/index.test.tsx.snap @@ -3,8 +3,8 @@ exports[`Login should render correctly 1`] = ` @@ -419,7 +419,7 @@ exports[`NetworksSettings should render correctly 1`] = ` placeholder="Search for previously added network" placeholderTextColor="#24272A" style={ - Object { + { "color": "#24272A", "flex": 1, "fontFamily": "EuclidCircularB-Regular", @@ -436,7 +436,7 @@ exports[`NetworksSettings should render correctly 1`] = ` @@ -527,7 +527,7 @@ exports[`NetworksSettings should render correctly 1`] = ` @@ -601,7 +601,7 @@ exports[`NetworksSettings should render correctly 1`] = ` @@ -687,7 +687,7 @@ exports[`NetworksSettings should render correctly 1`] = ` > @@ -756,14 +756,14 @@ exports[`NetworksSettings should render correctly 1`] = ` activeOpacity={0.2} onPress={[Function]} style={ - Array [ - Array [ - Object { + [ + [ + { "borderRadius": 100, "justifyContent": "center", "padding": 15, }, - Object { + { "backgroundColor": "#0376C9", "minHeight": 50, }, @@ -776,22 +776,22 @@ exports[`NetworksSettings should render correctly 1`] = ` > @@ -453,7 +453,7 @@ exports[`SecuritySettings should render correctly 1`] = ` scrollTo={null} statusBarTranslucent={false} supportedOrientations={ - Array [ + [ "portrait", "landscape", ] @@ -471,7 +471,7 @@ exports[`SecuritySettings should render correctly 1`] = ` /> diff --git a/app/components/Views/confirmations/SendFlow/AddressList/__snapshots__/AddressList.test.tsx.snap b/app/components/Views/confirmations/SendFlow/AddressList/__snapshots__/AddressList.test.tsx.snap index 5c0b655e826..8df419258fc 100644 --- a/app/components/Views/confirmations/SendFlow/AddressList/__snapshots__/AddressList.test.tsx.snap +++ b/app/components/Views/confirmations/SendFlow/AddressList/__snapshots__/AddressList.test.tsx.snap @@ -3,7 +3,7 @@ exports[`AddressList should render correctly 1`] = ` diff --git a/app/components/Views/confirmations/SendFlow/Amount/__snapshots__/index.test.tsx.snap b/app/components/Views/confirmations/SendFlow/Amount/__snapshots__/index.test.tsx.snap index 8a5a8fb4b4d..c32459e0123 100644 --- a/app/components/Views/confirmations/SendFlow/Amount/__snapshots__/index.test.tsx.snap +++ b/app/components/Views/confirmations/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`] = ` @@ -5455,11 +5455,11 @@ exports[`Amount should proceed if balance is sufficient while on Native primary @@ -5607,14 +5607,14 @@ exports[`Amount should proceed if balance is sufficient while on Native primary @@ -6135,7 +6135,7 @@ exports[`Amount should render correctly 1`] = ` @@ -6243,11 +6243,11 @@ exports[`Amount should render correctly 1`] = ` @@ -6847,7 +6847,7 @@ exports[`Amount should show a warning when conversion rate is not available 1`] @@ -6955,11 +6955,11 @@ exports[`Amount should show a warning when conversion rate is not available 1`] @@ -7592,11 +7592,11 @@ exports[`Amount should show an error message if balance is insufficient 1`] = ` @@ -7744,14 +7744,14 @@ exports[`Amount should show an error message if balance is insufficient 1`] = ` @@ -861,7 +861,7 @@ exports[`Confirm should render correctly 1`] = ` scrollTo={null} statusBarTranslucent={false} supportedOrientations={ - Array [ + [ "portrait", "landscape", ] @@ -873,7 +873,7 @@ exports[`Confirm should render correctly 1`] = ` /> @@ -1163,8 +1163,8 @@ exports[`Confirm should render correctly 1`] = ` @@ -207,7 +207,7 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -243,7 +243,7 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -384,7 +384,7 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -453,7 +453,7 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -583,7 +583,7 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -616,8 +616,8 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -760,7 +760,7 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -829,7 +829,7 @@ exports[`CustomGasModal should render correctly 1`] = ` @@ -967,14 +967,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, }, @@ -986,22 +986,22 @@ exports[`CustomGasModal should render correctly 1`] = ` > @@ -73,15 +73,15 @@ exports[`ApprovalFlowLoader should render correctly 1`] = ` @@ -81,7 +81,7 @@ exports[`EditGasFeeLegacyUpdate should match snapshot 1`] = ` @@ -117,18 +117,18 @@ exports[`EditGasFeeLegacyUpdate should match snapshot 1`] = ` @@ -168,7 +168,7 @@ exports[`EditGasFeeLegacyUpdate should match snapshot 1`] = ` @@ -325,7 +325,7 @@ exports[`EditGasFeeLegacyUpdate should match snapshot 1`] = ` @@ -394,7 +394,7 @@ exports[`EditGasFeeLegacyUpdate should match snapshot 1`] = ` @@ -524,7 +524,7 @@ exports[`EditGasFeeLegacyUpdate should match snapshot 1`] = ` @@ -557,8 +557,8 @@ exports[`EditGasFeeLegacyUpdate should match snapshot 1`] = ` @@ -701,7 +701,7 @@ exports[`EditGasFeeLegacyUpdate should match snapshot 1`] = ` @@ -770,7 +770,7 @@ exports[`EditGasFeeLegacyUpdate should match snapshot 1`] = ` @@ -908,20 +908,20 @@ exports[`EditGasFeeLegacyUpdate should match snapshot 1`] = ` activeOpacity={1} disabled={true} style={ - Array [ - Array [ - Object { + [ + [ + { "borderRadius": 100, "justifyContent": "center", "padding": 15, }, - Object { + { "backgroundColor": "#0376C9", "minHeight": 50, }, undefined, ], - Object { + { "opacity": 0.6, }, ] @@ -929,29 +929,29 @@ exports[`EditGasFeeLegacyUpdate should match snapshot 1`] = ` > @@ -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/Views/confirmations/components/TransactionReview/TransactionReviewSummary/__snapshots__/index.test.tsx.snap b/app/components/Views/confirmations/components/TransactionReview/TransactionReviewSummary/__snapshots__/index.test.tsx.snap index 3d0f25426c7..73ed5d3c14c 100644 --- a/app/components/Views/confirmations/components/TransactionReview/TransactionReviewSummary/__snapshots__/index.test.tsx.snap +++ b/app/components/Views/confirmations/components/TransactionReview/TransactionReviewSummary/__snapshots__/index.test.tsx.snap @@ -3,8 +3,8 @@ exports[`TransactionReviewSummary should render correctly 1`] = ` @@ -899,7 +899,7 @@ Array [ scrollTo={null} statusBarTranslucent={false} supportedOrientations={ - Array [ + [ "portrait", "landscape", ] @@ -912,21 +912,21 @@ Array [ @@ -1056,8 +1056,8 @@ Array [ @@ -1696,7 +1696,7 @@ Array [ @@ -1730,7 +1730,7 @@ Array [ { it('uses MetaMetrics instance', async () => { const { result } = renderHook(() => useMetrics()); expect(result.current).toMatchInlineSnapshot(` - Object { + { "addTraitsToUser": [MockFunction], "checkDataDeleteStatus": [MockFunction], "createDataDeletionTask": [MockFunction], diff --git a/app/lib/ppom/__snapshots__/PPOMView.test.tsx.snap b/app/lib/ppom/__snapshots__/PPOMView.test.tsx.snap index dbd5255649b..66d7efb75a2 100644 --- a/app/lib/ppom/__snapshots__/PPOMView.test.tsx.snap +++ b/app/lib/ppom/__snapshots__/PPOMView.test.tsx.snap @@ -3,7 +3,7 @@ exports[`PPOMView should render correctly deeply 1`] = `