Skip to content

refactor: revert hooks migration #7687

refactor: revert hooks migration

refactor: revert hooks migration #7687

Triggered via pull request January 27, 2025 16:56
Status Failure
Total duration 3m 9s
Artifacts

test.yml

on: pull_request
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

8 errors and 1 warning
src/wallet/components/WalletAdvancedProvider.test.tsx > useWalletAdvancedContext > should provide wallet advanced context when used within provider: src/wallet/components/WalletAdvancedProvider.test.tsx#L41
TypeError: mockUsePortfolio.mockReturnValue is not a function ❯ src/wallet/components/WalletAdvancedProvider.test.tsx:41:22
src/wallet/components/WalletAdvancedProvider.test.tsx > useWalletAdvancedContext > should throw an error when used outside of WalletAdvancedProvider: src/wallet/components/WalletAdvancedProvider.test.tsx#L41
TypeError: mockUsePortfolio.mockReturnValue is not a function ❯ src/wallet/components/WalletAdvancedProvider.test.tsx:41:22
src/wallet/components/WalletAdvancedProvider.test.tsx > useWalletAdvancedContext > should call usePortfolio with the correct address: src/wallet/components/WalletAdvancedProvider.test.tsx#L41
TypeError: mockUsePortfolio.mockReturnValue is not a function ❯ src/wallet/components/WalletAdvancedProvider.test.tsx:41:22
build (18.x)
Process completed with exit code 1.
build (18.x)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636