-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: replace @testing-library/react-hooks by @testing-library/react (…
…#6126) * chore: replace @testing-library/react-hooks by @testing-library/react * chore: fixme, help me fixing these tests * fix: tests of domain-service * test(evm): fix the tests of useGasOptions * test: implement feedbacks
- Loading branch information
Showing
39 changed files
with
395 additions
and
377 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
apps/ledger-live-desktop/src/renderer/hooks/useLocalizedUrls/useLocalizedUrls.test.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
libs/ledger-live-common/src/ble/hooks/useBleDevicePairing.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
libs/ledger-live-common/src/ble/hooks/useBleDevicesScanning.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 8 additions & 6 deletions
14
libs/ledger-live-common/src/deposit/deposit.integration.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
import "../__tests__/test-helpers/setup"; | ||
import { renderHook } from "@testing-library/react-hooks"; | ||
import { renderHook, waitFor } from "@testing-library/react"; | ||
import { useGroupedCurrenciesByProvider } from "."; | ||
|
||
test("list is starting with Bitcoin", async () => { | ||
const { waitForNextUpdate, result } = renderHook(() => useGroupedCurrenciesByProvider()); | ||
await waitForNextUpdate(); | ||
expect(result.current.sortedCryptoCurrencies.slice(0, 1).map(o => o.id)).toMatchObject([ | ||
"bitcoin", | ||
]); | ||
const { result } = renderHook(() => useGroupedCurrenciesByProvider()); | ||
|
||
await waitFor(() => | ||
expect(result.current.sortedCryptoCurrencies.slice(0, 1).map(o => o.id)).toMatchObject([ | ||
"bitcoin", | ||
]), | ||
); | ||
}); |
5 changes: 4 additions & 1 deletion
5
libs/ledger-live-common/src/deviceSDK/hooks/useBatteryStatuses.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
libs/ledger-live-common/src/deviceSDK/hooks/useToggleOnboardingEarlyChecks.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
libs/ledger-live-common/src/exchange/swap/hooks/live-app-migration/useIsSwapLiveApp.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
libs/ledger-live-common/src/exchange/swap/hooks/useFromState.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
libs/ledger-live-common/src/exchange/swap/hooks/usePageState.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
libs/ledger-live-common/src/exchange/swap/hooks/usePickDefaultAccount.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
libs/ledger-live-common/src/exchange/swap/hooks/usePickDefaultCurrency.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
libs/ledger-live-common/src/exchange/swap/hooks/useReverseAccounts.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 4 additions & 1 deletion
5
libs/ledger-live-common/src/exchange/swap/hooks/useSelectableCurrencies.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
libs/ledger-live-common/src/exchange/swap/hooks/useSwapTransaction.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
libs/ledger-live-common/src/exchange/swap/hooks/useToState.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 5 additions & 1 deletion
6
libs/ledger-live-common/src/exchange/swap/hooks/useUpdateMaxAmount.test.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
92754f6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Bot] Evm on Staging ✅ 3 txs 💰 2 miss funds ($0.00) ⏲ 2min 21s
Please increase the account target to at least 4 accounts
Please increase the account target to at least 4 accounts
Details of the 3 mutations
Spec Ethereum (failed)
Spec Ethereum Goerli (10)
Spec Ethereum Sepolia (10)
Spec Ethereum Holesky (failed)
Details of the 10 uncovered mutations
Spec Ethereum (3)
Spec Ethereum Goerli (1)
Spec Ethereum Sepolia (3)
Spec Ethereum Holesky (3)
Portfolio ($0.00) – Details of the 4 currencies
0x8a6Af0dD602db0A78EaD07cE9e2595815383FD5D
0x8a6Af0dD602db0A78EaD07cE9e2595815383FD5D
0x8a6Af0dD602db0A78EaD07cE9e2595815383FD5D
0x8a6Af0dD602db0A78EaD07cE9e2595815383FD5D
Performance ⏲ 2min 21s
Time spent for each spec: (total across mutations)
92754f6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[Bot] Bitcoin on Staging ✅ 21 txs ❌ 3 txs 💰 3 miss funds ($43.37) ⏲ 9min 16s
8 critical spec errors
Spec Bitcoin failed!
Spec Bitcoin Testnet failed!
Spec Komodo failed!
Spec Peercoin failed!
Spec PivX failed!
Spec Vertcoin failed!
Spec Viacoin failed!
Spec Decred failed!
❌ 3 mutation errors
Please increase the account target to at least 6 accounts
Please increase the account target to at least 6 accounts
Details of the 24 mutations
Spec Bitcoin (failed)
Spec Bitcoin Testnet (failed)
Spec Bitcoin Cash (7)
Spec Bitcoin Gold (6)
Spec Dash (7)
Spec Digibyte (9)
Spec DogeCoin (7)
Spec Komodo (failed)
Spec Litecoin (9)
Spec Peercoin (failed)
Spec PivX (failed)
Spec Qtum (6)
Spec Vertcoin (failed)
Spec Viacoin (failed)
Spec ZCash (5)
Spec Horizen (5)
Spec Decred (failed)
Details of the 61 uncovered mutations
Spec Bitcoin (5)
Spec Bitcoin Testnet (5)
Spec Bitcoin Cash (5)
Spec Bitcoin Gold (3)
Spec Dash (1)
Spec Komodo (5)
Spec Litecoin (1)
Spec Peercoin (5)
Spec PivX (5)
Spec Qtum (5)
Spec Vertcoin (5)
Spec Viacoin (5)
Spec ZCash (5)
Spec Horizen (1)
Spec Decred (5)
Portfolio ($43.37) – Details of the 17 currencies
qzn85g7msq5rj2eu73dqhkez4dmwn2q6vuhpm8pdx2
AJBi2AMyYsKVJ6UVxRk7tNgeCLs8Sa5iLw
XwUJg5widDxo5MyMqLtTYnwj1fyAc3g9QF
dgb1qhxy75a8897fva94dhn99veadu5xqz8f7pufjsh
DNvpSbgnrersSQpDpznLAukURcffuMTgbr
ltc1qnczs0g02efk6trhxfc99pu6w3g54hqn4jkx4au
MVYo3tWmufMkw8y12XoyFbx4dSyKYt5p94
t1W1vCEVTr16Tw1J6qV9M89dUbrfRsNUwAH
znmkTwDPKvpryBpzNvskp1kzRY7L7wywJEB
Performance ⏲ 9min 16s
Time spent for each spec: (total across mutations)