mirror of
https://github.com/apache/superset.git
synced 2026-04-22 01:24:43 +00:00
feat(extensions): code-first frontend contributions (#38346)
This commit is contained in:
committed by
GitHub
parent
01d5245cd2
commit
a74d32ab44
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user