Best answer

Mocking framework

  • 2 May 2023
  • 1 reply
  • 109 views

Badge +1

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?

icon

Best answer by MarinaH 3 May 2023, 16:38

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

1 reply

Userlevel 4
Badge +9

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!