Files
OmniRoute/tests
Xiangzhe 61d544bbd3 fix(db): keep test runs off the operator's real DATA_DIR
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
2026-08-14 21:13:03 -03:00
..