Skip to content

Commit 7212b02

Browse files
committed
fix: drop interceptors:[] from vended cdk test fixture
The vended CDK project at src/assets/cdk/ runs against whichever @aws/agentcore-cdk version the user installs from npm. Until the CDK PR merges and publishes a new alpha, the registry version doesn't declare `interceptors` on the project spec type — so the e2e job fails with TS2353 when building the vended cdk/ project. Drop the explicit `interceptors: []` from the test object literal. Zod's default fills in `[]` at parse time when the new CDK ships, and the field's absence is harmless in the meantime. The synth assertion itself doesn't care about interceptors at all. Snapshot updated to match.
1 parent e84fabe commit 7212b02

2 files changed

Lines changed: 0 additions & 2 deletions

File tree

src/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,6 @@ test('AgentCoreStack synthesizes with empty spec', () => {
404404
agentCoreGateways: [],
405405
mcpRuntimeTools: [],
406406
unassignedTargets: [],
407-
interceptors: [],
408407
},
409408
});
410409
const template = Template.fromStack(stack);

src/assets/cdk/test/cdk.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ test('AgentCoreStack synthesizes with empty spec', () => {
1818
agentCoreGateways: [],
1919
mcpRuntimeTools: [],
2020
unassignedTargets: [],
21-
interceptors: [],
2221
},
2322
});
2423
const template = Template.fromStack(stack);

0 commit comments

Comments
 (0)