eventual
eventual copied to clipboard
Unit Testing: Invoke HTTP Apis and provide mock implementations
Current it is possible to provide a handler for an event, but not for an API.
// provide an implementation of an api handler.
env.handlePath(path, method, () => {})
// call an API to hit it's handler
env.callApi(path, method, payload);