Testing out GraphQL API
Integration testing subscriptions
- We need a client which connects to my subscription endpoint.
- Read
graphql-wsdocumentation to see how to create a client.graphql-wsis a GraphQL over WebSocket spec compliant server and client.
-
Create a websocket client helper, for the written version of it you can find it in
apps/server-statistics-e2e/src/support:
- Then the rest is your normal tests. You can see how to write one in e2e tests for
apps/server-statistics-e2e.