mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-08-07 16:07:07 +00:00
The mock:on and mock:off scripts used GNU 'sed -i' syntax, which fails on the default macOS BSD sed. The '||' fallback then appended a fresh PULSE_MOCK_MODE line on every invocation, so a local .env accumulated three contradictory entries. They also targeted the repo-root .env, which hot-dev.sh does not consult when choosing the data directory. hot-dev.sh reads the canonical flag from tmp/dev-config/.env, written authoritatively by toggle-mock.sh. The npm wrappers were therefore a no-op that corrupted .env as a side effect, while leaving the operator believing mock mode had switched. Point them at toggle-mock.sh, which handles BSD sed, writes the canonical file, syncs the runtime env and restarts the managed runtime. Add mock:status and mock:edit; the hot-dev startup banner already advertised 'npm run mock:edit', which did not exist. Extend the deployment-installability contract to cover the mock wrappers alongside the existing repo-root dev entry rules, and add a regression test asserting the wrappers delegate rather than rewriting the flag inline, and that every mock command named in the hot-dev banner exists. |
||
|---|---|---|
| .. | ||
| integration | ||
| run.sh | ||
| test-cloud-public-signup-smoke.sh | ||
| test-common-lib.sh | ||
| test-hot-dev-auth.sh | ||
| test-hot-dev-bg.sh | ||
| test-hot-dev-runtime.sh | ||
| test-install-ps1-parser.sh | ||
| test-install-update-resilience.sh | ||
| test-pulse-auto-update.sh | ||
| test-retired-trial-acquisition-docs.sh | ||
| test-script-reference-integrity.sh | ||
| test-toggle-mock.sh | ||
| test_localized_public_docs.py | ||
| test_repo_docs_link_drift.py | ||
| test_sync_chart_release_metadata.py | ||
| test_telemetry_adoption_report.py | ||
| test_telemetry_schema_parity.py | ||