Files
openfsd/webjs
Reese Norris 6f80c534d9 web: airport-editor validation UX and docs polish
Live client + server confirm validation panel, empty states, sweatbox
handoff copy, and residual docs.
2026-07-23 20:37:49 -04:00
..

openfsd webjs tests

Node unit tests for pure first-party browser modules under internal/web/static/js/openfsd/. Sources are not duplicated here — tests import via relative paths into the go:embed tree.

Requirements

  • Node.js ≥ 20 (CI pins Node 20 LTS)
  • Zero production npm dependencies for unit tests (node:test / node:assert/strict)

Run

From repo root:

bash scripts/check-webjs.sh

Or from this directory:

npm test
# optional coverage (Node experimental):
npm run test:coverage

Layout

webjs/
  package.json
  airport-editor/*.test.js   # imports ../../internal/web/static/js/openfsd/airport-editor/*

Canonical sources: internal/web/static/js/openfsd/airport-editor/. Goldens / fixtures: pkg/twrfiles/testdata/.