## Summary Add unit tests for the `WriteIDEConfigs` function in `internal/devmode/devmode.go`. ## What to test This function reads host/port settings from `.env` and substitutes them into IDE configuration templates (VSCode launch.json, PHPStorm config). Test cases: - Standard `.env` with default ports — should generate configs with correct values - Custom ports in `.env` — should substitute correctly - Missing `.env` — should use default values - Output files written to correct locations ## How to test Use `t.TempDir()` to create a temporary installation directory with a `.env` file. No Docker or orchestrator needed. ## Context Part of the test coverage initiative (#241).
Summary
Add unit tests for the
WriteIDEConfigsfunction ininternal/devmode/devmode.go.What to test
This function reads host/port settings from
.envand substitutes them into IDE configuration templates (VSCode launch.json, PHPStorm config).Test cases:
.envwith default ports — should generate configs with correct values.env— should substitute correctly.env— should use default valuesHow to test
Use
t.TempDir()to create a temporary installation directory with a.envfile. No Docker or orchestrator needed.Context
Part of the test coverage initiative (#241).