Skip to content

test: add multi-path with override test for process.env#992

Closed
mahmoodhamdi wants to merge 1 commit intomotdotla:masterfrom
mahmoodhamdi:test/config-multiple-override
Closed

test: add multi-path with override test for process.env#992
mahmoodhamdi wants to merge 1 commit intomotdotla:masterfrom
mahmoodhamdi:test/config-multiple-override

Conversation

@mahmoodhamdi
Copy link
Copy Markdown
Contributor

Adds a test verifying that config() with multiple paths and override: true correctly:

  • Writes values to process.env even when keys already exist
  • Uses the second file's values when both files define the same key (since override applies to the internal parsedAll aggregation too)

Add test verifying that config with multiple paths and override: true
correctly writes values to process.env even when keys already exist,
and that the second file in the array overrides the first.
@mahmoodhamdi
Copy link
Copy Markdown
Contributor Author

Closing this — I should have consolidated these into a single well-structured PR instead of opening them individually. Apologies for the noise.

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