awslabs / awslabs/aws-lambda-dart-runtime
[Question] How can I test the lambda?
- Dominant language
- Dart
- Stars
- 152
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
I am, not just unit testing, but the app itself. When I try to run it I get the error:
```
Unhandled exception:
NoSuchMethodError: The getter 'requestId' was called on null.
Receiver: null
Tried calling: requestId
#0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
#1 Runtime.invoke (package:aws_lambda_dart_runtime/runtime/runtime.dart:117:28)
#2 main (file:///C:/Users/shina/Desenvolvimento/dart_projects/lambda_test/bin/lambda_test.dart:62:7)
#3 _startIsolate. (dart:isolate-patch/isolate_patch.dart:301:19)
#4 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
```
There is a way to run it (for testing purposes) locally, without having to upload the zip file to aws?
Contributor guide
Assessment
This issue has not been assessed yet.