mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-15 03:32:21 +03:00
A script or test that opens the DB without setting DATA_DIR resolved to ~/.omniroute — the operator's live database, provider credentials included. tests/_setup/isolateDataDir.ts only covers the npm scripts; the documented single-file command and any ad-hoc probe bypass it. resolveWritableDataDir now redirects a test-context process with no DATA_DIR to a throwaway temp dir (stable per process), keeping the documented command working instead of failing it. OMNIROUTE_ALLOW_DEFAULT_DATA_DIR=1 opts back in. Closes #10428