starknet-react
starknet-react copied to clipboard
Mock connector for testing
We should make it as easy as possible for users to test their code. The mock connector should simulate a real connector (e.g. InjectedConnector) and expose two additional methods: accept() and reject() to accept and reject user requests (connect, submit, etc).
This is super useful combined with cypress to have end-to-end tests.
This can be done with moq.ts, so no need to reinvent the wheel.