Joakim Hedlund

Results 20 comments of Joakim Hedlund

A subtle but important benefit at scale is that when you point multiple API Gateway routes to the same Lambda you can cache things in-memory, such as your database connection....

Is there a particular reason you want to test that `status()` was called, as opposed to looking at the status code in the response? For example, my tests for the...

@lukemcgregor It's a custom function. I don't have access to verbatim examples at the moment but basically it has a default Lambda `event` object such as this one https://gist.github.com/anuradhawick/6fffd792ebae3148c11ebecf6b966b2a and...

In the spirit of keeping dependencies and external tools to a minimum, I solved this by splitting the route management into a separate module (`api.js`) so that it could be...

> > In the spirit of keeping dependencies and external tools to a minimum, I solved this by splitting the route management into a separate module (`api.js`) so that it...

> I've modified the local file and it works. You can review it: > https://github.com/jlopezcrd/lambda-api-test/compare/master...fixlocal?expand=1 > > Regards. Interesting. I'm not sure why that approach works but I'm glad you...

Looks like this would be fixed in #67.. if it ever gets merged. In the meantime, if you want to use this package in an Typescript project you can install...

#67 has been merged and the branch was deleted so now you may be getting an error like this: ``` npm ERR! code 128 npm ERR! Command failed: git checkout...

No worries, I'm just glad the issue is being looked at :) > in addition we allow several params and not only two so this code is not correct. From...