Skip to content

feat(aws): support testing lambda directly when --aws-api=none - #938

Merged
dominique-pfister merged 2 commits into
mainfrom
feat/aws-test-invoke-no-api
Jul 23, 2026
Merged

feat(aws): support testing lambda directly when --aws-api=none#938
dominique-pfister merged 2 commits into
mainfrom
feat/aws-test-invoke-no-api

Conversation

@dominique-pfister

@dominique-pfister dominique-pfister commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Summary

  • test() now invokes the Lambda function directly via the Invoke API (with 404/500 retry) when --aws-api=none, instead of throwing an error
  • Guards BaseConfig#testPath against this.test being unset (optional chaining)
  • Adds a test covering the new InvokeCommand code path

Test plan

  • npm test

🤖 Generated with Claude Code

Instead of throwing, test() now invokes the function via the Lambda
Invoke API when no API Gateway is configured, retrying on 404/500.
Also guards BaseConfig#testPath against a missing this.test.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown

This PR will trigger a minor release when merged.

@dominique-pfister dominique-pfister changed the title feat(aws): support testing lambda directly when --aws-api=none feat(aws): support testing lambda directly when --aws-api=none Jul 23, 2026
@dominique-pfister
dominique-pfister merged commit 3a5b55e into main Jul 23, 2026
5 checks passed
@dominique-pfister
dominique-pfister deleted the feat/aws-test-invoke-no-api branch July 23, 2026 13:08
adobe-bot pushed a commit that referenced this pull request Jul 23, 2026
# [14.4.0](v14.3.0...v14.4.0) (2026-07-23)

### Features

* **aws:** support testing lambda directly when `--aws-api=none` ([#938](#938)) ([3a5b55e](3a5b55e)), closes [BaseConfig#testPath](https://github.com/BaseConfig/issues/testPath)
@adobe-bot

Copy link
Copy Markdown

🎉 This PR is included in version 14.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants