-
Notifications
You must be signed in to change notification settings - Fork 156
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
feat: optimized connect-button code #481
feat: optimized connect-button code #481
Conversation
🦋 Changeset detectedLatest commit: 557e735 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #481 +/- ##
==========================================
+ Coverage 99.54% 99.61% +0.06%
==========================================
Files 92 92
Lines 4214 4197 -17
Branches 433 423 -10
==========================================
- Hits 4195 4181 -14
+ Misses 18 15 -3
Partials 1 1 ☔ View full report in Codecov by Sentry. |
有两行改动测试没有覆盖到,需要加一下测试样例。 |
@@ -94,7 +94,12 @@ describe('more-wallets-connect', () => { | |||
}); | |||
fireEvent.click(walletItems[1]!); | |||
await vi.waitFor(() => { | |||
expect(baseElement.querySelector('.ant-web3-connect-modal-qr-code-box')).toBeTruthy(); | |||
const qrCodeBox = baseElement.querySelector('.ant-web3-connect-modal-qr-code-box'); | |||
if (qrCodeBox !== null) { |
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.
这边原来的写法没问题吧? 为什么要改成这样。 !== null 才except toBeTruthy 不是多余了。 然后现在落后主分支很多代码了,可以同步一下主分支的代码。
覆盖率要提升下,有两行代码 miss 了。 |
No description provided.