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

cli: unit tests for apollo command #702

Open
josephjclark opened this issue May 28, 2024 · 0 comments
Open

cli: unit tests for apollo command #702

josephjclark opened this issue May 28, 2024 · 0 comments

Comments

@josephjclark
Copy link
Collaborator

I am not planning to do this before the apollo release, so here's some notes:

  • Unit tests need to mock an apollo server. Not totally easy as it needs to be a websocket server.
  • Don't test services, but test CLI behaviours. Like how to handle a { files } result
  • Ideally I'd like tests against the echo service which can be easily reproduced with the actual CLI. So I can copy and paste the test name and just run it - a bit like how our integration tests work
  • I don't want any integration tests on this right now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: New Issues
Development

No branches or pull requests

1 participant