You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I have had a lot of difficulty testing components that rely on useWallet and I haven't been able to figure out how to setup a mock wallet context with a dummy publicKey that I can test with. An example of how to do this(if it's possible given the current package exports) would be really helpful I think for the dev community.
Describe the solution you'd like
A documented example of running a unit test with some test provider component like a <MockWalletProvider /> which shows how to setup such a component so that it has the publicKey of your choice, and it would be really nice to even show how to create a mock wallet that can send transactions.
Describe alternatives you've considered
When I google search or look in the docs, I haven't seen anything about how to do this. I actually think if we exported WalletProviderBase we might be able to do this.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
I have had a lot of difficulty testing components that rely on
useWallet
and I haven't been able to figure out how to setup a mock wallet context with a dummy publicKey that I can test with. An example of how to do this(if it's possible given the current package exports) would be really helpful I think for the dev community.Describe the solution you'd like
A documented example of running a unit test with some test provider component like a
<MockWalletProvider />
which shows how to setup such a component so that it has the publicKey of your choice, and it would be really nice to even show how to create a mock wallet that can send transactions.Describe alternatives you've considered
When I google search or look in the docs, I haven't seen anything about how to do this. I actually think if we exported
WalletProviderBase
we might be able to do this.The text was updated successfully, but these errors were encountered: