Best answer

Mocking framework

  • 2 May 2023
  • 1 reply
  • 15 views

Badge

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

1 reply

Userlevel 4
Badge +8

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!

Reply