When i started using serverless-http a few hours ago i had some trouble geting started with testing based on the serverless() call not having the statusCode and body attributes that I was expecting based on the TS declarations.
After some debugging I found the problem to be that the result was a promise, wrapping the expected results in a callback.
I just wanted to contribute my findings so that the process will be easier the next person.
When i started using serverless-http a few hours ago i had some trouble geting started with testing based on the serverless() call not having the statusCode and body attributes that I was expecting based on the TS declarations. After some debugging I found the problem to be that the result was a promise, wrapping the expected results in a callback. I just wanted to contribute my findings so that the process will be easier the next person.