Zuplo Mocking & Unit Test Sample#
This sample shows how to mock ZuploRequest
and ZuploContext
in order to write unit tests. This sample uses mocha and sinon, but the concepts apply to any test and mocking tool.
See the handlers.spec.ts
file for details.
Discover More Examples
API Linting
See how to use API linting to enforce api consistency and require Zuplo features like policies.
API Governance
Backend for Frontend (BFF) Auth
Optimize UX and security in web applications with this approach.
Authentication
Custom Rate Limiting
Invoke the Rate Limit policy programatically and then modify the 429 response.
Programmability
Custom Modules
How to bundle custom node modules to use in your Zuplo project.
Programmability