Files
metabuilder/packages/testing/tests/metadata.test.json
johndoe6345789 42446ef255 feat: Update package schemas and scripts to support JSON-based lifecycle hooks
- Added `jsonScript` property to metadata schema for JSON script entry points.
- Refactored `generate-package.ts` to replace Lua scripts with JSON scripts for lifecycle hooks.
- Updated test generation to use JSON format for metadata validation.
- Modified documentation and comments to reflect the transition from Lua to JSON scripting.
- Adjusted Storybook configuration and mock data to align with new JSON script structure.
- Renamed relevant files and references from Lua to JSON for consistency across the project.
2026-01-07 15:25:45 +00:00

71 lines
1.8 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/tests.schema.json",
"schemaVersion": "2.0.0",
"package": "testing",
"description": "Metadata validation tests for the Testing Framework",
"testSuites": [
{
"id": "metadata_validation",
"name": "Testing Framework Metadata",
"description": "Verify metadata integrity for the testing framework",
"tests": [
{
"id": "package-id",
"name": "packageId matches",
"act": {
"type": "function_call",
"target": "getPackageMetadata",
"input": "testing"
},
"assert": {
"expectations": [
{
"type": "equals",
"actual": "result.packageId",
"expected": "testing"
}
]
}
},
{
"id": "icon-exists",
"name": "Icon exists",
"act": {
"type": "function_call",
"target": "checkFileExists",
"input": "testing/static_content/icon.svg"
},
"assert": {
"expectations": [
{
"type": "truthy",
"actual": "result"
}
]
}
},
{
"id": "metadata-schema",
"name": "package.json validates",
"act": {
"type": "function_call",
"target": "validateAgainstSchema",
"input": {
"file": "testing/package.json",
"schema": "https://metabuilder.dev/schemas/package-metadata.schema.json"
}
},
"assert": {
"expectations": [
{
"type": "truthy",
"actual": "result.valid"
}
]
}
}
]
}
]
}