feat: frontend tests — import/export validator + unit tests + CI integration
- tests/frontend/validate-imports.mjs: 0 errors on 13 modules, 79 exports Detects: missing exports, broken imports, const reassignments - tests/frontend/unit.test.mjs: escapeHtml, state object, module syntax - Added to CI lint job (runs after Ruff + Mypy)
This commit is contained in:
@@ -32,6 +32,12 @@ jobs:
|
||||
- name: Mypy (type checker)
|
||||
run: mypy backend/ --ignore-missing-imports || echo "mypy found type errors (advisory — 28 pre-existing issues)"
|
||||
|
||||
- name: Frontend validation
|
||||
run: node tests/frontend/validate-imports.mjs
|
||||
|
||||
- name: Frontend unit tests
|
||||
run: node tests/frontend/unit.test.mjs
|
||||
|
||||
# ── Tests ─────────────────────────────────────────────────────────
|
||||
test:
|
||||
needs: lint
|
||||
|
||||
Reference in New Issue
Block a user