Skip to content

test: add unit tests for CdkDeleter logic#615

Merged
go-to-k merged 2 commits intomainfrom
test/cdk-deleter-unit-tests
Mar 30, 2026
Merged

test: add unit tests for CdkDeleter logic#615
go-to-k merged 2 commits intomainfrom
test/cdk-deleter-unit-tests

Conversation

@go-to-k
Copy link
Copy Markdown
Owner

@go-to-k go-to-k commented Mar 30, 2026

Summary

  • Add unit tests for CdkDeleter.groupByRegion and CdkDeleter.hasCrossRegionDependencies
  • 7 test cases covering: single/multiple regions, empty input, same-region deps, cross-region deps, non-target stack deps

- groupByRegion: single region, multiple regions, empty
- hasCrossRegionDependencies: no deps, same region, cross region,
  dependency on non-target stack
- Add loadConfig and stackDeleterFunc fields to CdkDeleter for DI
- Add stackDeleterIface interface to abstract StackDeleter
- Add 5 flow tests: single region, multi-region no deps, cross-region
  deps (with order verification), loadConfig error, deletion error
@go-to-k go-to-k merged commit 5531fd3 into main Mar 30, 2026
2 checks passed
@go-to-k go-to-k deleted the test/cdk-deleter-unit-tests branch March 30, 2026 07:33
This was referenced Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant