coinbase / coinbase-wallet-sdk

An open protocol that lets users connect their mobile wallets to your DApp
https://coinbase.github.io/coinbase-wallet-sdk/
MIT License
1.4k stars 522 forks source link

Prototype Communicator test #1266

Closed eric-ships closed 2 months ago

eric-ships commented 2 months ago

Summary

This PR prototypes a simple solution of testing Communicator.

Given the async nature of message passing, this is a prototype of a simple solution to queue up message events and then dispatch them every 200ms.

If this proposal is accepted, the plan would be to keep iterating forward and, ultimately, move these test helpers into its own module.

How did you test your changes?

Unit tests