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

[Seedless-onboarding] - tests for useMPC hook #2536

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

schmanu
Copy link
Member

@schmanu schmanu commented Sep 22, 2023

What it solves

  • Adds tests for the useInitMPC hook
  • Connecting wallet after rehydration
  • emitting correct events when switching chain
  • initialization of MPC Core Kit

How to test it

  • yarn test useMPC

Checklist

  • I've tested the branch on mobile 📱
  • I've documented how it affects the analytics (if at all) 📊
  • I've written a unit/e2e test for it (if applicable) 🧑‍💻

@github-actions
Copy link

github-actions bot commented Sep 22, 2023

Branch preview

✅ Deploy successful!

https://web3authcoresdk_usempc_test--walletweb.review-wallet-web.5afe.dev

@github-actions
Copy link

github-actions bot commented Sep 22, 2023

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

src/hooks/wallets/mpc/__tests__/useMPC.test.ts Outdated Show resolved Hide resolved
src/hooks/wallets/mpc/__tests__/useMPC.test.ts Outdated Show resolved Hide resolved
src/hooks/wallets/mpc/__tests__/useMPC.test.ts Outdated Show resolved Hide resolved
src/hooks/wallets/mpc/__tests__/useMPC.test.ts Outdated Show resolved Hide resolved
src/hooks/wallets/mpc/__tests__/useMPC.test.ts Outdated Show resolved Hide resolved
src/hooks/wallets/mpc/__tests__/useMPC.test.ts Outdated Show resolved Hide resolved
src/hooks/wallets/mpc/useMPC.ts Outdated Show resolved Hide resolved
src/hooks/wallets/mpc/__tests__/useMPC.test.ts Outdated Show resolved Hide resolved
@schmanu schmanu requested a review from iamacook September 22, 2023 12:57
@schmanu schmanu merged commit 19c4477 into web3authcoresdk Sep 22, 2023
5 of 7 checks passed
@schmanu schmanu deleted the web3authcoresdk-usempc-test branch September 22, 2023 13:11
@github-actions github-actions bot locked and limited conversation to collaborators Sep 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants