starknet-react icon indicating copy to clipboard operation
starknet-react copied to clipboard

Mock connector for testing

Open fracek opened this issue 3 years ago • 1 comments

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).

fracek avatar Mar 14 '22 13:03 fracek

This is super useful combined with cypress to have end-to-end tests.

fracek avatar Jun 05 '22 09:06 fracek

This can be done with moq.ts, so no need to reinvent the wheel.

fracek avatar Oct 01 '22 10:10 fracek