It'd be nice to have the ability to test locally apollo-server-lambda in addition of the online workflow with S3 (with a library such as lambda-local); some users might want to migrate from apollo-server-{something} to apollo-server-lambda and the conversion should be smoother if it could be done locally.
I'm not sure if you've found a solution or not, but you should be able to do local development and testing with apollo-server-lambda via the serverless-offline library.
@dbrrt I am using apollo-server-lamba for local server tests. All you have to do is import your lambda handler in a test and execute it with a payload.
If you want a local "dev server" environment serverless-offline is working fine for me too (like @dhm116
said)!
As stated by others above, testing apollo-server-lamdba locally can be accomplished using serverless. Since creating a reliably environment that simulates AWS Lambda can be a bit complicated and specialized, it鈥檚 probably best that we rely on libarires that specialize in doing exactly that.
Thanks for this suggestion originally!
Most helpful comment
@dbrrt I am using apollo-server-lamba for local server tests. All you have to do is import your lambda handler in a test and execute it with a payload.
If you want a local "dev server" environment serverless-offline is working fine for me too (like @dhm116
said)!