Hi i have problem while trying to setup graphql in...
# pact-js
b
Hi i have problem while trying to setup graphql interaction as my mock server seems to not starting and i dont have contract generated. Do you know what might be the issue ? Here is my setup (it is live in one class) As a test runner i am using Vitest as it should work as Jest anyway
and here error message
i was trying to follow example from pact-js https://github.com/pact-foundation/pact-js/blob/master/examples/graphql/src/consumer.spec.ts just used bit different runner (vitest) and didnt use chai for assertion which rather is not a problem
client class
image.png
I was also trying ro remove all async related code and result is same
It seems like its executing provider.finalize()); before adding an interaction
I was able to run tests using vitest but just installed and used all API methods from jest like beforeAll describe etc..