-
Notifications
You must be signed in to change notification settings - Fork 538
[SDK] React test coverage #5825
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
packages/thirdweb/src/react/web/ui/hooks/useCopyClipboard.test.ts
Outdated
Show resolved
Hide resolved
e9a3b92
to
b1bb5c7
Compare
b1bb5c7
to
7a7fdc7
Compare
7a7fdc7
to
1ad480b
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5825 +/- ##
==========================================
+ Coverage 53.55% 54.11% +0.55%
==========================================
Files 1102 1102
Lines 59163 59202 +39
Branches 4837 4885 +48
==========================================
+ Hits 31685 32037 +352
+ Misses 26760 26441 -319
- Partials 718 724 +6
*This pull request uses carry forward flags. Click here to find out more.
|
1ad480b
to
59e3cec
Compare
Merge activity
|
## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on significant updates to wallet support, increasing the number of supported wallets from 350+ to 500+. It also includes various code deletions, modifications, and new features across multiple components and files. ### Detailed summary - Increased wallet support from 350+ to 500+ across various components. - Updated `version` in `package.json` files. - Modified `ChainIcon` component to use a fallback icon. - Added `ModalPreview` for connect modal examples. - Updated descriptions in documentation and UI elements. - Refactored several components for better code clarity and functionality. - Deleted multiple unused assets and components. > The following files were skipped due to too many changes: `apps/dashboard/src/components/icons/ChainIcon.tsx`, `packages/thirdweb/src/react/core/utils/structuralSharing.test.ts`, `packages/thirdweb/src/contract/deployment/utils/bootstrap.ts`, `packages/thirdweb/src/react/web/utils/resolveMimeType.test.ts`, `apps/portal/src/app/connect/wallet/sign-in-methods/external-wallets/page.mdx`, `apps/dashboard/src/hooks/useCsvUpload.ts`, `apps/dashboard/src/app/nebula-app/(app)/components/Chats.tsx`, `packages/thirdweb/src/react/web/ui/MediaRenderer/mime/mime.test.ts`, `apps/portal/src/app/connect/account-abstraction/erc-20-paymaster/page.mdx`, `apps/dashboard/src/app/(dashboard)/(chain)/components/server/chain-icon.tsx`, `packages/thirdweb/src/contract/deployment/utils/create-2-factory.ts`, `packages/thirdweb/src/react/web/ui/MediaRenderer/icons.test.tsx`, `packages/thirdweb/src/react/web/ui/hooks/useShowMore.test.tsx`, `packages/thirdweb/src/react/web/ui/hooks/useDebouncedValue.test.tsx`, `apps/portal/src/app/connect/page.mdx`, `apps/portal/src/app/connect/wallet/sign-in-methods/configure/page.mdx`, `packages/thirdweb/src/react/core/utils/walletIcon.ts`, `apps/portal/src/app/typescript/v5/adapters/page.mdx`, `apps/portal/src/app/connect/wallet/get-started/page.mdx`, `apps/portal/src/app/react/v5/adapters/page.mdx`, `packages/thirdweb/src/react/web/ui/MediaRenderer/MediaRenderer.test.tsx`, `apps/portal/src/app/nebula/api-reference/page.mdx`, `packages/thirdweb/src/react/core/utils/walletIcon.test.ts`, `apps/dashboard/src/app/team/[team_slug]/[project_slug]/insight/[blueprint_slug]/blueprint-playground.stories.tsx`, `apps/dashboard/src/app/team/[team_slug]/[project_slug]/insight/[blueprint_slug]/blueprint-playground.client.tsx`, `apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/_components/claim-conditions/snapshot-upload.tsx`, `pnpm-lock.yaml` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
59e3cec
to
1b103d7
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on enhancing testing coverage for various components and utilities in the
thirdweb
package, alongside some internal refactoring and improvements to error handling and media type resolution.Detailed summary
useConnectionManager
to ensure it throws an error outsideThirdwebProvider
.resolveMediaTypeFromUri
for media type resolution.isSmartWallet
functionality.MediaRenderer
with new tests forIframePlayer
andLinkPlayer
.mergeRefs
utility with tests.getQueryKey
for NFT name and media resolution with tests.useClipboard
,useShowMore
, anduseDebouncedValue
hooks with tests for expected behaviors.walletIcon
utility to ensure correct icon retrieval based on provider.