MCPcopy
hub / github.com/reflex-dev/reflex / _stub_initial_install

Function _stub_initial_install

tests/units/test_prerequisites.py:52–59  ·  view source on GitHub ↗
(primary_pm, env)

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 1

run_package_managerFunction · 0.85

Tested by

no test coverage detected