Skip to content

fix: skip env var case-sensitivity test on Windows#294

Merged
RyanNg1403 merged 2 commits intomainfrom
fix/windows-env-var-case-test
Mar 16, 2026
Merged

fix: skip env var case-sensitivity test on Windows#294
RyanNg1403 merged 2 commits intomainfrom
fix/windows-env-var-case-test

Conversation

@RyanNg1403
Copy link
Copy Markdown
Collaborator

Summary

  • Skip the "should handle case-insensitive environment variable names" test on Windows using it.skipIf(process.platform === 'win32')
  • Remove leftover console.log(result) debug line

On Windows, process.env.test_var and process.env.TEST_VAR refer to the same variable (Windows env vars are case-insensitive by design). The test assumes case-sensitive env vars, which is only true on Unix/macOS. This is a platform limitation, not a code bug — skipping on Windows is the correct fix.

Test plan

  • All 21 loader tests pass on macOS
  • The specific test runs (not skipped) on Unix/macOS
  • Test would be skipped on Windows via it.skipIf

Fixes #229

🤖 Generated with Claude Code

RyanNg1403 and others added 2 commits March 17, 2026 00:02
Windows treats environment variable names as case-insensitive,
so setting both test_var and TEST_VAR overwrites the same variable.
Skip this test on Windows since the behavior is platform-dependent
by design, not a code bug.

Also removes leftover console.log debug line.

Fixes #229

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Pre-existing formatting issue unrelated to the test fix.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@RyanNg1403 RyanNg1403 merged commit 113367c into main Mar 16, 2026
5 checks passed
@RyanNg1403 RyanNg1403 deleted the fix/windows-env-var-case-test branch March 27, 2026 02:14
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.

[BUG] Test failure: environment variable case sensitivity on Windows

1 participant