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

Need tests covering main use case: init/request #3

Open
reborg opened this issue Dec 19, 2022 · 2 comments
Open

Need tests covering main use case: init/request #3

reborg opened this issue Dec 19, 2022 · 2 comments

Comments

@reborg
Copy link
Contributor

reborg commented Dec 19, 2022

The only test available calls load-queries. It should exercise init and then calling the function returned by init. It should possibly use a local file and a remote one (http get/post can be stubbed with with-redefs).

@herichovadajana
Copy link
Collaborator

herichovadajana commented Dec 19, 2022

Do you suggest to mock graphql server (or only HTTP calls), or make tests with real graphql server, either site or something else ?

@reborg
Copy link
Contributor Author

reborg commented Dec 19, 2022

Only http calls, see https://clojuredocs.org/clojure.core/with-redefs#example-542692d6c026201cdc3270bd . This is not urgent, but probably required for publication.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants