Files
meshcore-analyzer/tests
n30nexandn30nex a2417b25a3 test: normalize static helper import as a file URL (#2404)
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>
2026-11-17 23:31:08 +01:00
..