Skip to content

Commit 1b1b7a9

Browse files
committed
fix: update test expectations for non-existent stack patterns
1 parent ecb2108 commit 1b1b7a9

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

test/test/cdko-integration.test.ts

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,13 @@ describe("CDKO CLI Integration Tests", () => {
4444
expect(typeof config.stackGroups).toBe("object");
4545
});
4646

47-
test("Error handling for non-existent stack patterns", async () => {
48-
await expect(
49-
$`${cdkoPath} -p test-profile -s "NonExistent-*" --dry-run`,
50-
).rejects.toThrow();
47+
test("Dry-run succeeds even with non-existent stack patterns", async () => {
48+
const result =
49+
await $`${cdkoPath} -p test-profile -s "NonExistent-*" --dry-run`;
50+
expect(result.exitCode).toBe(0);
51+
expect(result.stdout).toContain(
52+
"Using traditional pattern-based deployment",
53+
);
5154
});
5255

5356
test("Help command displays usage information", async () => {

0 commit comments

Comments
 (0)