Skip to content

Conversation

github-actions[bot]
Copy link

@github-actions github-actions bot commented Jul 9, 2025

Closes #378

Applied changes based on Issue #378.

I’ve renamed the two helpers for clarity and updated all their usages and tests:

src/config/config.ts

  • parseEnvInputparseKeyValueMap
  • parseListInputparseStringList
  • Updated the internal calls in getConfig() to match the new names, and swapped the parseEnvInput(parseListInput(…)) call to parseKeyValueMap(parseStringList(…)).

【F:src/config/config.ts†L66-L74】【F:src/config/config.ts†L106-L113】【F:src/config/config.ts†L155-L162】

tests/unit/config/config.test.ts

  • Updated imports, describe‑blocks, and all assertions to use parseKeyValueMap and parseStringList instead of the old names.

【F:tests/unit/config/config.test.ts†L1-L8】【F:tests/unit/config/config.test.ts†L10-L38】【F:tests/unit/config/config.test.ts†L40-L76】


These minimal changes preserve existing behavior (and existing tests) while giving the helpers names that more accurately describe their functionality. Let me know if you’d like any tweaks!

@YiweiShen YiweiShen merged commit b4a251d into main Jul 9, 2025
3 checks passed
@YiweiShen YiweiShen deleted the codez-chore-378-refactor-config-rename-parseenvinput-and-parselistinput-helpers-3051213568 branch July 9, 2025 05:58
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.

Improve config helper names

1 participant