Skip to content

test: drop mock of getEnvVar#398

Merged
jkleinsc merged 1 commit into
mainfrom
test/drop-getEnvVar-mock
Jun 16, 2026
Merged

test: drop mock of getEnvVar#398
jkleinsc merged 1 commit into
mainfrom
test/drop-getEnvVar-mock

Conversation

@dsanders11

Copy link
Copy Markdown
Member

This mock prevents testing some code paths because it's just returning undefined. There's no reason to do a mock here, we can exercise the real util code.

Removing it exposes that COMMITTER_USER_NAME isn't set in tests and is undocumented. Looking at the historical context, it looks like it was originally used for electron-bot, but we haven't used that account in ages, so let's just drop the COMMITTER_USER_NAME usage as part of this.

@dsanders11 dsanders11 requested a review from a team as a code owner June 16, 2026 04:07
@jkleinsc jkleinsc merged commit d487fa0 into main Jun 16, 2026
6 checks passed
@jkleinsc jkleinsc deleted the test/drop-getEnvVar-mock branch June 16, 2026 20:19
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.

2 participants