{"action":"created","issue":{"url":"https://api.github.com/repos/apollographql/graphql-subscriptions/issues/125","repository_url":"https://api.github.com/repos/apollographql/graphql-subscriptions","labels_url":"https://api.github.com/repos/apollographql/graphql-subscriptions/issues/125/labels{/name}","comments_url":"https://api.github.com/repos/apollographql/graphql-subscriptions/issues/125/comments","events_url":"https://api.github.com/repos/apollographql/graphql-subscriptions/issues/125/events","html_url":"https://github.com/apollographql/graphql-subscriptions/issues/125","id":287061793,"node_id":"MDU6SXNzdWUyODcwNjE3OTM=","number":125,"title":"How to write integration tests of graphql-js subscriptions ? ","user":{"login":"aatifhussain","id":4911191,"node_id":"MDQ6VXNlcjQ5MTExOTE=","avatar_url":"https://avatars2.githubusercontent.com/u/4911191?v=4","gravatar_id":"","url":"https://api.github.com/users/aatifhussain","html_url":"https://github.com/aatifhussain","followers_url":"https://api.github.com/users/aatifhussain/followers","following_url":"https://api.github.com/users/aatifhussain/following{/other_user}","gists_url":"https://api.github.com/users/aatifhussain/gists{/gist_id}","starred_url":"https://api.github.com/users/aatifhussain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aatifhussain/subscriptions","organizations_url":"https://api.github.com/users/aatifhussain/orgs","repos_url":"https://api.github.com/users/aatifhussain/repos","events_url":"https://api.github.com/users/aatifhussain/events{/privacy}","received_events_url":"https://api.github.com/users/aatifhussain/received_events","type":"User","site_admin":false},"labels":[{"id":624993092,"node_id":"MDU6TGFiZWw2MjQ5OTMwOTI=","url":"https://api.github.com/repos/apollographql/graphql-subscriptions/labels/waiting-for-response","name":"waiting-for-response","color":"fbca04","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-01-09T11:48:16Z","updated_at":"2018-09-26T20:22:17Z","closed_at":"2018-09-26T20:22:17Z","author_association":"NONE","body":"I am using loopback-graphql-relay and I am able to test mutations and queries using mocha. I need to test subscriptions as well. \r\n\r\nThe only guide I found on google is [this](https://medium.com/@javierfernandes/testing-graphql-subscriptions-ee14d63bf97a). But It is not working. Is there any other example?"},"comment":{"url":"https://api.github.com/repos/apollographql/graphql-subscriptions/issues/comments/424856589","html_url":"https://github.com/apollographql/graphql-subscriptions/issues/125#issuecomment-424856589","issue_url":"https://api.github.com/repos/apollographql/graphql-subscriptions/issues/125","id":424856589,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNDg1NjU4OQ==","user":{"login":"grantwwu","id":4212965,"node_id":"MDQ6VXNlcjQyMTI5NjU=","avatar_url":"https://avatars0.githubusercontent.com/u/4212965?v=4","gravatar_id":"","url":"https://api.github.com/users/grantwwu","html_url":"https://github.com/grantwwu","followers_url":"https://api.github.com/users/grantwwu/followers","following_url":"https://api.github.com/users/grantwwu/following{/other_user}","gists_url":"https://api.github.com/users/grantwwu/gists{/gist_id}","starred_url":"https://api.github.com/users/grantwwu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grantwwu/subscriptions","organizations_url":"https://api.github.com/users/grantwwu/orgs","repos_url":"https://api.github.com/users/grantwwu/repos","events_url":"https://api.github.com/users/grantwwu/events{/privacy}","received_events_url":"https://api.github.com/users/grantwwu/received_events","type":"User","site_admin":false},"created_at":"2018-09-26T20:22:17Z","updated_at":"2018-09-26T20:22:17Z","author_association":"COLLABORATOR","body":"I don't know anything about how Loopback works, but it depends on your setup - you presumably use a client to both publish events to whatever you're using to back these subscriptions, and then use the client to also subscribe, and then test that it behaves correctly.\r\n\r\nI'm going to close this issue for now since it's been a while there was last any activity on it, and it was not clear what action to take here.  I'm going to leave conversation open, so feel free to respond if you want to pursue this further."}}
{"actor":{"display_login":"grantwwu"}}