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
Summary
The
installPodstestshould inject Ruby and CocoaPods paths and default shell and locale valuesfails on Windows because it uses:as the PATH separator, which is macOS/Linux-specific. TheinstallPodsfeature itself already has aplatform !== 'darwin'guard in the source, but the test lacks the equivalent skip.Root Cause
getEnhancedEnvironmentininstallPods.tshardcodes:as the PATH separator (macOS convention). The test setsprocess.env.PATHusing: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