Skip to content

[Bug] installPods enhanced environment test fails on Windows due to macOS-only PATH separator #2715

@ConnorQi01

Description

@ConnorQi01

Summary

The installPods test should inject Ruby and CocoaPods paths and default shell and locale values fails on Windows because it uses : as the PATH separator, which is macOS/Linux-specific. The installPods feature itself already has a platform !== 'darwin' guard in the source, but the test lacks the equivalent skip.

Root Cause

getEnhancedEnvironment in installPods.ts hardcodes : as the PATH separator (macOS convention). The test sets process.env.PATH using : and splits by :, which does not work on Windows where the separator is ;.

Proposed Fix

Skip the test on non-macOS platforms with this.skip().

Test Plan

  • Test is skipped (pending) on Windows
  • Test runs normally on macOS

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions