-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Local testing #148
Comments
I considered adding a local testing suite to this library, but after much consideration decided it would be out-of-scope. There are other tools and libraries for developing locally with lambda. My personal recommendation is to unit test your middleware, and integration test it with a real lambda deployment. If you're using infrastructure as code like the cdk, this should be as easy as a cdk deploy and a cdk destroy in the test environment. |
@BlenderDude when i try to run locally with serverless invoke local --function, i get a any solution for that? |
Im getting the same problem @DarlonHenrique |
I was able to fix this isssue by converting my events to API Gateway V2
Changed to this
|
Hi
It'd be really helpful for me if there could be a local testing example in the docs. Currently using a different entry point for the local and hosted version of my subgraph
Hosted
import { startServerAndCreateLambdaHandler } from '@as-integrations/aws-lambda';
Local
import { startStandaloneServer } from '@apollo/server/standalone';
This is making it difficult to test things such as middleware
The text was updated successfully, but these errors were encountered: