(primary_pm, env)
| 50 | # Forward the initial-install helper through the same stub so tests can |
| 51 | # inspect the install args without mocking subprocess primitives. |
| 52 | def _stub_initial_install(primary_pm, env): |
| 53 | args = [primary_pm, "install", "--legacy-peer-deps"] |
| 54 | if js_runtimes._is_bun_package_manager(primary_pm): |
| 55 | args.append("--frozen-lockfile") |
| 56 | run_package_manager( |
| 57 | args, |
| 58 | show_status_message="Installing base frontend packages", |
| 59 | ) |
| 60 | |
| 61 | monkeypatch.setattr(js_runtimes, "_run_initial_install", _stub_initial_install) |
| 62 |
nothing calls this directly
no test coverage detected