from __future__ import annotations import shutil import subprocess from pathlib import Path import pytest def test_frontend_partner_group_contracts() -> None: if shutil.which("node") is None: pytest.skip("node is not installed") root = Path(__file__).resolve().parent.parent result = subprocess.run( ["node", "--test", "frontend/partner-groups.test.mjs"], cwd=root, text=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT, check=False, ) assert result.returncode == 0, result.stdout