mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 22:04:56 +00:00
- Created package.json for Nerd Mode IDE with dependencies and exports. - Defined access permissions in roles.json for IDE functionalities. - Implemented file system and execution functions in functions.json. - Added SVG icon for the IDE in static_content/icon.svg. - Configured Storybook for the IDE with various components and examples. - Established design tokens in tokens.json for consistent styling. - Developed parameterized test data in metadata.params.json for testing. - Created metadata validation tests in metadata.test.json to ensure package integrity.
94 lines
2.5 KiB
JSON
94 lines
2.5 KiB
JSON
{
|
|
"$schema": "https://metabuilder.dev/schemas/tests.schema.json",
|
|
"schemaVersion": "2.0.0",
|
|
"package": "nerd_mode_ide",
|
|
"description": "Package metadata validation tests",
|
|
|
|
"testSuites": [
|
|
{
|
|
"id": "package-metadata",
|
|
"name": "Package Metadata Tests",
|
|
"description": "Validate package.json metadata structure and values",
|
|
"tags": ["metadata", "validation"],
|
|
|
|
"tests": [
|
|
{
|
|
"id": "test-package-id",
|
|
"name": "should have correct packageId",
|
|
"act": {
|
|
"type": "function_call",
|
|
"target": "getPackageMetadata",
|
|
"input": "nerd_mode_ide"
|
|
},
|
|
"assert": {
|
|
"expectations": [
|
|
{
|
|
"type": "equals",
|
|
"actual": "result.packageId",
|
|
"expected": "nerd_mode_ide",
|
|
"description": "Package ID should match"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "test-min-level",
|
|
"name": "should require Admin level",
|
|
"act": {
|
|
"type": "function_call",
|
|
"target": "getPackageMetadata",
|
|
"input": "nerd_mode_ide"
|
|
},
|
|
"assert": {
|
|
"expectations": [
|
|
{
|
|
"type": "equals",
|
|
"actual": "result.minLevel",
|
|
"expected": 4,
|
|
"description": "minLevel should be 4 (Admin)"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "test-icon-exists",
|
|
"name": "should have an icon file",
|
|
"act": {
|
|
"type": "function_call",
|
|
"target": "checkFileExists",
|
|
"input": "nerd_mode_ide/static_content/icon.svg"
|
|
},
|
|
"assert": {
|
|
"expectations": [
|
|
{
|
|
"type": "truthy",
|
|
"actual": "result",
|
|
"description": "Icon file should exist"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": "test-category",
|
|
"name": "should be in tools category",
|
|
"act": {
|
|
"type": "function_call",
|
|
"target": "getPackageMetadata",
|
|
"input": "nerd_mode_ide"
|
|
},
|
|
"assert": {
|
|
"expectations": [
|
|
{
|
|
"type": "equals",
|
|
"actual": "result.category",
|
|
"expected": "tools",
|
|
"description": "Category should be tools"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|