Has anyone successfully mocked any aspect of the prismic-javascript
library.
I am wanting to mock the response from the query
function on the Api object received from getApi
. This is so I can test our response should the query timeout now that we can pass a timeout argument.
I can mock the getApi
or Predicates
functionality but not query
function.