Skip to content

test: add unit tests for args parsing and prompt interpolation#128

Open
Pgarciapg wants to merge 1 commit intoopenai:mainfrom
Pgarciapg:exec-assistant/2026-04-03
Open

test: add unit tests for args parsing and prompt interpolation#128
Pgarciapg wants to merge 1 commit intoopenai:mainfrom
Pgarciapg:exec-assistant/2026-04-03

Conversation

@Pgarciapg
Copy link
Copy Markdown

Summary

  • Add tests/args.test.mjs with 11 tests covering parseArgs (boolean flags, value options, inline values, short aliases, passthrough positionals, missing value error) and splitRawArgumentString (space splitting, single/double quotes, backslash escaping, trailing backslash)
  • Add tests/prompts.test.mjs with 5 tests covering interpolateTemplate (single key, multiple keys, unknown key, no placeholders, duplicate key)

Test plan

  • All 16 tests pass locally via node --test tests/args.test.mjs tests/prompts.test.mjs
  • CI passes on this branch

🤖 Generated with Claude Code

…olation

Add tests/args.test.mjs covering parseArgs (boolean flags, value options,
inline values, short aliases, passthrough positionals, missing value error)
and splitRawArgumentString (space splitting, single/double quotes, backslash
escaping, trailing backslash). Add tests/prompts.test.mjs covering
interpolateTemplate (single key, multiple keys, unknown key, no placeholders,
duplicate key).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Pgarciapg Pgarciapg requested a review from a team April 3, 2026 05:06
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