concept decorate function in category microservice
appears as: decorate function, The decorate function, decorate functions

This is an excerpt from Manning's book Testing Microservices with Mountebank.
The decorate function isn’t as capable as a full inject response. Behaviors don’t have access to any user-controlled state like response injection. They don’t allow asynchronous responses, which eliminates a large class of JavaScript I/O operations, as discussed in chapter 6. That said, the decorate behavior does allow the majority of the response message to be visible in a static is response, which simplifies maintenance of your test data.