feat(extensions): code-first frontend contributions (#38346)

This commit is contained in:
Michael S. Molina
2026-03-02 18:51:29 -03:00
committed by GitHub
parent 01d5245cd2
commit a74d32ab44
56 changed files with 1430 additions and 2403 deletions

View File

@@ -223,21 +223,8 @@ def test_extension_json_content_is_correct(
# Load and verify more complex nested structures
content = load_json_file(extension_json_path)
# Verify frontend section exists and has correct structure
assert "frontend" in content
frontend = content["frontend"]
assert "contributions" in frontend
assert "moduleFederation" in frontend
assert frontend["contributions"] == {
"commands": [],
"views": {},
"menus": {},
"editors": [],
}
assert frontend["moduleFederation"] == {
"exposes": ["./index"],
"name": "testOrg_testExtension",
}
# Verify frontend section is not present (contributions are code-first)
assert "frontend" not in content
# Verify backend section exists and has correct structure
assert "backend" in content