Skip to main content

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?

Hey @benjamink9 👋
 

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!