Clean frontend app entrypoint
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user