When I convert an integration, using zapier convert, it creates a node.js project that uses mocha and shoutd.
I’d like to add unit tests that use mocking rather than actual connections to the remote service (a REST API).
Which mocking framework would you suggest? Do you have any examples of this?
Best answer by MarinaHView original
Nock is recommended and there’s an example in our docs here: https://github.com/zapier/zapier-platform/blob/main/packages/cli/README.md#mocking-requests
Hope that helps get you started!