Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mock connector for testing #54

Closed
fracek opened this issue Mar 14, 2022 · 2 comments
Closed

Mock connector for testing #54

fracek opened this issue Mar 14, 2022 · 2 comments

Comments

@fracek
Copy link
Contributor

fracek commented Mar 14, 2022

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 fracek added Type: feature New feature or request help wanted labels Apr 15, 2022
@fracek fracek added the Difficulty: easy Good for newcomers label May 4, 2022
@fracek
Copy link
Contributor Author

fracek commented Jun 5, 2022

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

@fracek
Copy link
Contributor Author

fracek commented Oct 1, 2022

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

@fracek fracek closed this as completed Oct 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant