-
Notifications
You must be signed in to change notification settings - Fork 50
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
Is that possible to write intergration test? #118
Comments
Hi @Zxilly, can you link to the documentation of what this would mean, in the context of AWS Lambda? |
I want to mock a request and ensure the response met the requirement. |
Thanks for linking that. The same logic applies - your |
I want something like #[test]
fn test_my_lambda_handler() {
let input = include_str!("apigw_proxy_request.json");
let request = lambda_http::request::from_str(input)
.expect("failed to create request");
let response = my_lambda_handler(request).await.expect("failed to handle request");
} Is that also possible right now? |
I don't think the CC @ecklf we might want to consider exposing the |
AWS Lambda provides such support, but I didn't know how to implement it with vercel runtime
The text was updated successfully, but these errors were encountered: