Clean frontend app entrypoint
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-17 08:32:32 +02:00
parent 9bcef9331a
commit 6d15bc6956
5 changed files with 50 additions and 2 deletions
@@ -27,6 +27,17 @@ def test_app_uses_shared_orchestration_hooks() -> None:
assert "externalApi" not in app
def test_app_entrypoint_has_clean_encoding_and_react_imports() -> None:
app_path = ROOT / "frontend" / "src" / "App.tsx"
app_bytes = app_path.read_bytes()
app = app_path.read_text(encoding="utf-8")
assert not app_bytes.startswith(b"\xef\xbb\xbf")
assert "import { useEffect, useMemo } from 'react'" in app
assert "FormEvent" not in app
assert "useState" not in app
def test_demo_workflow_hook_owns_demo_api_and_cross_module_selection() -> None:
hook = (ROOT / "frontend" / "src" / "hooks" / "useDemoWorkflow.ts").read_text(encoding="utf-8")