juxt / blip

Small library for fetching/injecting graphql definitions
Eclipse Public License 1.0
2 stars 0 forks source link

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

Open reborg opened 1 year ago

reborg commented 1 year ago

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 commented 1 year ago

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

reborg commented 1 year ago

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