Hi, I’m using LocalStack with SamLocal so it executes my SAM template in LocalStack and creates our resources.
Now I want to write some integration tests using Jest but unsure on how I can get the function URL into my test to execute the request.
Any help would be appreciated, my function definition is below…
SubmitOrder:
Type: AWS::Serverless::Function
Properties:
FunctionName: submit_order
Handler: dist/handlers.addOrder
Runtime: nodejs18.x
Architectures:
- x86_64
MemorySize: 128
Timeout: 100
Events:
Api:
Type: Api
Properties:
Path: /orders
Method: POST