Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chore: update jest action #4236

Merged
merged 6 commits into from
Sep 24, 2024
Merged

Chore: update jest action #4236

merged 6 commits into from
Sep 24, 2024

Conversation

katspaugh
Copy link
Member

@katspaugh katspaugh commented Sep 23, 2024

What it solves

Trying to find a more modern, maintained and flexible action that would work in external PRs too.

Copy link

github-actions bot commented Sep 23, 2024

Copy link

github-actions bot commented Sep 23, 2024

📦 Next.js Bundle Analysis for safe-wallet-web

This analysis was generated by the Next.js Bundle Analysis action. 🤖

This PR introduced no changes to the JavaScript bundle! 🙌

@safe-global safe-global deleted a comment from github-actions bot Sep 23, 2024
@katspaugh katspaugh marked this pull request as draft September 23, 2024 17:58
Copy link

☂️ Code Coverage

% Stmts% Branch% Funcs% Lines
78.25 🟡58.22 🟠65.32 🟡79.76 🟡
Click to expand
File% Stmts% Branch% Funcs% Lines
src/utils
wallets.ts64.44 🟠25 🔴70 🟡69.44 🟡
hex.ts100 🟢100 🟢100 🟢100 🟢
addresses.ts90.9 🟢83.33 🟢83.33 🟢92.3 🟢
transaction-calldata.ts98.33 🟢100 🟢100 🟢100 🟢
transactions.ts72.13 🟡39.02 🔴45.45 🔴75 🟡
transaction-guards.ts69.74 🟡36.92 🔴68.33 🟡71.11 🟡
chains.ts93.1 🟢92.85 🟢100 🟢100 🟢
gateway.ts82.6 🟢100 🟢66.66 🟡83.33 🟢
web3.ts100 🟢100 🟢100 🟢100 🟢
helpers.ts88.88 🟢100 🟢87.5 🟢87.5 🟢
safe-versions.ts100 🟢100 🟢100 🟢100 🟢
validation.ts81.53 🟢83.33 🟢61.53 🟠83.63 🟢
formatters.ts74.13 🟡57.14 🟠76.92 🟡74.41 🟡
formatNumber.ts100 🟢94.44 🟢100 🟢100 🟢
safe-message-guards.ts71.42 🟡100 🟢50 🔴80 🟡
tx-link.ts50 🔴100 🟢0 🔴66.66 🟡
url.ts82.35 🟢100 🟢80 🟡89.28 🟢
ethers-utils.ts76.47 🟡33.33 🔴66.66 🟡83.33 🟢
SimpleTxWatcher.ts100 🟢100 🟢100 🟢100 🟢
date.ts75.6 🟡90 🟢75 🟡80 🟡
safe-messages.ts81.25 🟢74.07 🟡100 🟢78.18 🟡
tokens.ts51.42 🟠33.33 🔴33.33 🔴53.84 🟠
tx-history-filter.ts100 🟢90.9 🟢100 🟢100 🟢
mad-props.tsx100 🟢100 🟢100 🟢100 🟢
relaying.ts100 🟢50 🔴100 🟢100 🟢
tx-list.ts94.23 🟢88 🟢85.71 🟢95.74 🟢
src/hooks/wallets
web3.ts59.09 🟠8.33 🔴16.66 🔴52.94 🟠
consts.ts66.66 🟡100 🟢100 🟢100 🟢
useOnboard.ts44.91 🔴12.12 🔴15 🔴48.07 🔴
useWallet.ts100 🟢100 🟢100 🟢100 🟢
useWalletBalance.ts92.3 🟢100 🟢100 🟢91.66 🟢
src/config
constants.ts100 🟢100 🟢100 🟢100 🟢
chains.ts100 🟢100 🟢100 🟢100 🟢
routes.ts100 🟢100 🟢100 🟢100 🟢
src/services
ExternalStore.ts100 🟢100 🟢100 🟢100 🟢
sentry.ts46.66 🔴0 🔴0 🔴46.15 🔴
EventBus.ts100 🟢100 🟢100 🟢100 🟢
src/services/private-key-module
index.ts16.94 🔴0 🔴0 🔴18.51 🔴
pk-popup-store.ts80 🟡50 🔴0 🔴88.88 🟢
src/services/local-storage
session.ts70 🟡50 🔴50 🔴71.42 🟡
Storage.ts60.41 🟠60 🟠40 🔴58.69 🟠
storageHelpers.ts91.66 🟢75 🟡100 🟢91.66 🟢
local.ts80 🟡50 🔴50 🔴71.42 🟡
useLocalStorage.ts87.09 🟢60 🟠85.71 🟢86.66 🟢
src/services/exceptions
index.ts100 🟢100 🟢100 🟢100 🟢
ErrorCodes.ts100 🟢100 🟢100 🟢100 🟢
utils.ts100 🟢100 🟢100 🟢100 🟢
...c/services/security/modules/RecipientAddressModule
index.ts94.59 🟢87.5 🟢100 🟢94.28 🟢
src/services/contracts
spendingLimitContracts.ts68.75 🟡0 🔴66.66 🟡61.53 🟠
safeContracts.ts76.19 🟡62.5 🟠63.63 🟠71.69 🟡
deployments.ts100 🟢100 🟢100 🟢100 🟢
ContractErrorCodes.ts100 🟢100 🟢100 🟢100 🟢
src/services/tx/tx-sender
sdk.ts35.76 🔴9.75 🔴29.41 🔴34.14 🔴
dispatch.ts37.81 🔴35.29 🔴25 🔴36.89 🔴
create.ts49.23 🔴60 🟠30.76 🔴51.92 🟠
index.ts100 🟢100 🟢100 🟢100 🟢
spendingLimit.ts84.84 🟢76.92 🟡100 🟢86.2 🟢
recommendedNonce.ts36.84 🔴0 🔴0 🔴37.5 🔴
src/hooks/coreSDK
safeCoreSDK.ts95.91 🟢91.66 🟢100 🟢97.67 🟢
useInitSafeCoreSDK.ts90 🟢87.5 🟢75 🟡89.28 🟢
src/hooks
useChains.ts100 🟢50 🔴100 🟢100 🟢
useDarkMode.ts93.75 🟢85.71 🟢100 🟢92.85 🟢
useChainId.ts97.61 🟢92 🟢83.33 🟢100 🟢
useSafeInfo.ts100 🟢100 🟢100 🟢100 🟢
usePendingTxs.ts89.79 🟢82.35 🟢92.3 🟢92.68 🟢
useAsync.ts100 🟢100 🟢100 🟢100 🟢
useDraftBatch.ts62.06 🟠0 🔴20 🔴65.38 🟡
useSafeAddress.ts100 🟢75 🟡100 🟢100 🟢
useAllAddressBooks.ts100 🟢100 🟢100 🟢100 🟢
useIsSafeOwner.ts100 🟢100 🟢100 🟢100 🟢
useHighlightHiddenTab.ts76.47 🟡40 🔴77.77 🟡78.12 🟡
useBalances.ts100 🟢100 🟢100 🟢100 🟢
useOrigin.ts100 🟢100 🟢100 🟢100 🟢
useDelegates.ts86.66 🟢100 🟢66.66 🟡100 🟢
useIsOnlySpendingLimitBeneficiary.tsx88.23 🟢75 🟡50 🔴93.33 🟢
useIsWrongChain.ts100 🟢100 🟢100 🟢100 🟢
useIsValidExecution.ts71.11 🟡58.33 🟠60 🟠71.42 🟡
useClock.ts100 🟢0 🔴100 🟢100 🟢
useDebounce.ts100 🟢100 🟢100 🟢100 🟢
useSafeTokenAllocation.ts94.38 🟢80 🟡100 🟢93.82 🟢
useHiddenTokens.ts100 🟢100 🟢100 🟢100 🟢
useSpendingLimit.ts90.9 🟢0 🔴50 🔴90 🟢
useIsSidebarRoute.ts38.46 🔴0 🔴0 🔴38.46 🔴
useGasPrice.ts95 🟢80.95 🟢100 🟢94.8 🟢
useIntervalCounter.ts100 🟢100 🟢100 🟢100 🟢
useAddressBook.ts100 🟢100 🟢100 🟢100 🟢
useTxPendingStatuses.ts83.63 🟢68.33 🟡75 🟡92.63 🟢
useTxHistory.ts96.66 🟢66.66 🟡100 🟢96.42 🟢
useWalletCanPay.ts100 🟢100 🟢100 🟢100 🟢
useRemainingRelays.ts100 🟢100 🟢100 🟢100 🟢
useWalletCanRelay.ts70 🟡83.33 🟢50 🔴70.58 🟡
useGasLimit.ts74.57 🟡60 🟠71.42 🟡73.68 🟡
useLastSafe.ts100 🟢62.5 🟠100 🟢100 🟢
useOwnedSafes.ts91.66 🟢53.84 🟠66.66 🟡90.9 🟢
useDecodeTx.ts100 🟢100 🟢100 🟢100 🟢
useIsPending.ts100 🟢100 🟢100 🟢100 🟢
useTransactionStatus.ts88 🟢60 🟠100 🟢90.9 🟢
usePendingActions.ts100 🟢94.73 🟢100 🟢100 🟢
useTxQueue.ts87.5 🟢70 🟡60 🟠92.3 🟢
useVisibleBalances.ts100 🟢75 🟡100 🟢100 🟢
useBatchedTxs.ts96.87 🟢85.71 🟢100 🟢100 🟢
useSafeNotifications.ts74.57 🟡50 🔴62.5 🟠77.35 🟡
useTransactionType.tsx60.86 🟠36.95 🔴100 🟢61.36 🟠
useOnceVisible.ts12 🔴0 🔴0 🔴13.63 🔴
useAddressResolver.ts100 🟢100 🟢100 🟢100 🟢
useTxTracking.ts100 🟢88.88 🟢100 🟢100 🟢
usePreviousNonces.ts66.66 🟡40 🔴42.85 🔴66.66 🟡
useSpendingLimitGas.ts38.88 🔴0 🔴0 🔴43.75 🔴
useAdjustUrl.ts93.75 🟢80 🟡100 🟢93.33 🟢
src/store
index.ts100 🟢100 🟢100 🟢100 🟢
persistStore.ts96.29 🟢90.9 🟢100 🟢95.23 🟢
broadcast.ts100 🟢100 🟢100 🟢100 🟢
slices.ts100 🟢100 🟢100 🟢100 🟢
chainsSlice.ts100 🟢100 🟢100 🟢100 🟢
common.ts100 🟢50 🔴100 🟢100 🟢
safeInfoSlice.ts100 🟢100 🟢100 🟢100 🟢
balancesSlice.ts76.92 🟡100 🟢0 🔴87.5 🟢
sessionSlice.ts70.58 🟡100 🟢60 🟠75 🟡
txHistorySlice.ts90.9 🟢72.72 🟡60 🟠92.85 🟢
pendingTxsSlice.ts100 🟢100 🟢100 🟢100 🟢
txQueueSlice.ts80 🟡66.66 🟡28.57 🔴83.33 🟢
addressBookSlice.ts89.18 🟢55.55 🟠87.5 🟢92.3 🟢
notificationsSlice.ts76.66 🟡16.66 🔴46.15 🔴72.72 🟡
addedSafesSlice.ts63.15 🟠50 🔴41.66 🔴67.74 🟡
settingsSlice.ts74.62 🟡83.33 🟢68 🟡66 🟡
cookiesAndTermsSlice.ts52.38 🟠33.33 🔴20 🔴64.28 🟠
popupSlice.ts53.84 🟠100 🟢25 🔴75 🟡
spendingLimitsSlice.ts83.33 🟢100 🟢50 🔴100 🟢
safeAppsSlice.ts93.1 🟢100 🟢87.5 🟢95.65 🟢
safeMessagesSlice.ts100 🟢100 🟢100 🟢100 🟢
pendingSafeMessagesSlice.ts87.5 🟢100 🟢60 🟠81.81 🟢
batchSlice.ts36.36 🔴0 🔴0 🔴41.17 🔴
swapOrderSlice.ts84.81 🟢75 🟡77.77 🟡85.91 🟢
gateway.ts68 🟡100 🟢50 🔴72.72 🟡
useHydrateStore.ts100 🟢100 🟢100 🟢100 🟢
ofac.ts46.42 🔴0 🔴25 🔴54.54 🟠
safePass.ts90.9 🟢75 🟡50 🔴88.88 🟢
src/services/tx
txEvents.ts100 🟢100 🟢100 🟢100 🟢
extractTxInfo.ts68.75 🟡37.73 🔴100 🟢68.08 🟡
proposeTransaction.ts50 🔴0 🔴0 🔴60 🟠
txMonitor.ts82.35 🟢80.95 🟢86.95 🟢83.75 🟢
spendingLimitParams.ts81.81 🟢100 🟢75 🟡83.33 🟢
encodeSignatures.ts100 🟢100 🟢100 🟢100 🟢
tokenTransferParams.ts96.29 🟢80 🟡80 🟡95.83 🟢
safeUpdateParams.ts100 🟢100 🟢100 🟢100 🟢
mocks
terms.md.js75 🟡100 🟢100 🟢100 🟢
svg.js80 🟡100 🟢100 🟢100 🟢
src/services/safe-messages
safeMsgEvents.ts100 🟢100 🟢100 🟢100 🟢
safeMsgNotifications.ts37.5 🔴0 🔴0 🔴42.85 🔴
safeMsgSender.ts100 🟢100 🟢100 🟢100 🟢
src/features/counterfactual/store
undeployedSafesSlice.ts37.14 🔴33.33 🔴37.5 🔴44 🔴
src/features/swap/store
swapParamsSlice.ts66.66 🟡100 🟢0 🔴87.5 🟢
src/features/swap/helpers
utils.ts75.75 🟡60 🟠76.19 🟡77.9 🟡
fee.ts100 🟢92.85 🟢100 🟢100 🟢
src/features/swap
types.ts100 🟢100 🟢100 🟢100 🟢
constants.ts50 🔴100 🟢100 🟢100 🟢
src/components/sidebar/DebugToggle
index.tsx55 🟠0 🔴0 🔴55.55 🟠
src/components/common/WalletProvider
index.tsx33.33 🔴0 🔴0 🔴33.33 🔴
src/services/analytics
index.ts100 🟢100 🟢100 🟢100 🟢
gtm.ts70.76 🟡60 🟠50 🔴77.77 🟡
TagManager.ts97.14 🟢100 🟢90 🟢96.87 🟢
types.ts100 🟢100 🟢100 🟢100 🟢
tx-tracking.ts87.87 🟢81.25 🟢100 🟢87.5 🟢
src/services/analytics/events
index.ts100 🟢100 🟢100 🟢100 🟢
addressBook.ts100 🟢100 🟢100 🟢100 🟢
assets.ts100 🟢100 🟢100 🟢100 🟢
createLoadSafe.ts100 🟢100 🟢100 🟢100 🟢
mobileAppPromotion.ts100 🟢100 🟢100 🟢100 🟢
modals.ts100 🟢100 🟢100 🟢100 🟢
overview.ts100 🟢100 🟢100 🟢100 🟢
safeApps.ts100 🟢100 🟢100 🟢100 🟢
settings.ts100 🟢100 🟢100 🟢100 🟢
txList.ts100 🟢100 🟢100 🟢100 🟢
wallet.ts100 🟢100 🟢100 🟢100 🟢
batching.ts100 🟢100 🟢100 🟢100 🟢
transactions.ts100 🟢100 🟢100 🟢100 🟢
swaps.ts100 🟢100 🟢100 🟢100 🟢
push-notifications.ts75 🟡100 🟢100 🟢100 🟢
walletconnect.ts75 🟡100 🟢100 🟢100 🟢
counterfactual.ts75 🟡100 🟢100 🟢100 🟢
stake.ts75 🟡100 🟢100 🟢100 🟢
recovery.ts66.66 🟡100 🟢100 🟢100 🟢
src/services/tracking
abTesting.ts75 🟡100 🟢66.66 🟡83.33 🟢
src/utils/providers
UncheckedJsonRpcSigner.ts20 🔴100 🟢0 🔴20 🔴
src/services/security/modules
types.ts100 🟢100 🟢100 🟢100 🟢
src/service-workers/firebase-messaging
notifications.ts66.66 🟡66.66 🟡66.66 🟡68.29 🟡
webhook-types.ts40 🔴100 🟢33.33 🔴66.66 🟡
notification-mapper.ts97.5 🟢85.71 🟢100 🟢97.36 🟢
src/services/push-notifications
preferences.ts100 🟢100 🟢100 🟢100 🟢
firebase.ts86.95 🟢72.72 🟡100 🟢89.47 🟢
tracking.ts55.17 🟠0 🔴33.33 🔴54.16 🟠
src/components/theme
SafeThemeProvider.tsx100 🟢100 🟢100 🟢100 🟢
safeTheme.ts93.02 🟢50 🔴93.33 🟢95.12 🟢
lightPalette.ts100 🟢100 🟢100 🟢100 🟢
darkPalette.ts66.66 🟡100 🟢100 🟢100 🟢
truncated...

@katspaugh katspaugh marked this pull request as ready for review September 24, 2024 07:39
Copy link

Coverage report

St.
Category Percentage Covered / Total
🟡 Statements 78.23% 12017/15361
🔴 Branches 58.21% 3084/5298
🟡 Functions 65.29% 1892/2898
🟡 Lines 79.75% 10848/13603

Test suite run success

1485 tests passing in 203 suites.

Report generated by 🧪jest coverage report action from 13a3967

@katspaugh katspaugh merged commit 930953f into dev Sep 24, 2024
15 checks passed
@katspaugh katspaugh deleted the jest branch September 24, 2024 07:56
@github-actions github-actions bot locked and limited conversation to collaborators Sep 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant