Skip to content

test: add fixtures for dynamic Fn::Include filename via env var#149

Merged
nmccready merged 1 commit intomasterfrom
test/dynamic_filename_include_
Apr 13, 2026
Merged

test: add fixtures for dynamic Fn::Include filename via env var#149
nmccready merged 1 commit intomasterfrom
test/dynamic_filename_include_

Conversation

@nmccready
Copy link
Copy Markdown

Summary

  • Adds t/includes/one.json / t/includes/two.json sibling fixtures demonstrating dynamic filename inclusion via $FILE_NAME env var
  • Adds a CLI test case in t/tests/cli.json exercising FILE_NAME=two cfn-include --enable eval,env one.json
  • Adds an API-level test case in t/tests/location.json using doEnv: true + inject: { FILE_NAME: "two" }

Test plan

  • npx vitest run test/include.test.ts -t "dynamic filename" passes
  • npx vitest run test/cli.test.ts -t "dynamic filename" passes

🤖 Generated with Claude Code

Covers the FILE_NAME=two cfn-include --enable eval,env one.json flow
where one.json includes ./$FILE_NAME.json and resolves to a sibling
two.json. Adds a CLI-level case in t/tests/cli.json and an API-level
case in t/tests/location.json using inject + doEnv.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nmccready nmccready merged commit 765cdb6 into master Apr 13, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant