mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-11-22 03:37:27 +00:00
Partial fix for #1995. On native Windows, this suite aborts before its five checks because the absolute module path is treated as an unsupported `f:` URL. Use Node's built-in `pathToFileURL(...).href` for the dynamic import. TDD exemption: pure test-harness refactor/repair. Application code is unchanged. Per-altered-test justification for `tests/unit/test-dev-static.js`: import-path normalization is the sole changed fixture statement, plus the required built-in import. All five existing test bodies, assertions and teardown are byte-identical. The original loading failure is not claimed as assertion RED. Validation: Windows x64, Node v22.18.0. - Untouched suite: `ERR_UNSUPPORTED_ESM_URL_SCHEME`, exit 1 before assertions. - Updated suite: 5 passed, 0 failed; also 5/5 from a directory containing spaces, `#` and `%`. - Byte comparison, `node --check tests/unit/test-dev-static.js` and `git diff --check` pass. Parent independently passed the five native checks and all 236 standalone frontend suites without an ESM adapter. [Exact-head CI](https://github.com/Kpa-clawbot/CoreScope/actions/runs/43899294545), including all three browser shards, and three independent reviews pass. Runner reconciliation, browser waits, coverage and the rest of #1995 remain open. Co-authored-by: n30nex <6686206+n30nex@users.noreply.github.com>