Quality-centric = There are a few examples showing approaches for testing contract-related functionality in isolation-GREAT!! However, the same cannot be said if searching the web for mocking BeaconWallet and TezosToolkit. I also had a look at at just constructing something in the tests but the type doc definitions are a 404. Any help much appreciated thanks in advance!

1 Answer 1


If you want to unit test components that use beacon, I suggest that you create a stub for the DAppClient or BeaconWallet instance, and then either return a successful or error response when submitting a transaction. You can do this using your testing framework of choice, there is nothing beacon specific to it.

Feel free to include an example of what you are trying to achieve so we can give you a more detailed answer.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.