// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
exports[`componentSchemasTool should have a consistent return structure: structure 1`] = `
{
"callback": [Function],
"name": "componentSchemas",
"schema": true,
}
`;
exports[`componentSchemasTool, callback should parse parameters, default 1`] = `
{
"content": [
{
"text": "{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"title": "Button Props",
"description": "Props for the Button component",
"properties": {
"variant": {
"type": "string",
"enum": [
"primary",
"secondary"
]
},
"size": {
"type": "string",
"enum": [
"sm",
"md",
"lg"
]
},
"children": {
"type": "string",
"description": "Content rendered inside the button"
}
},
"required": [
"children"
],
"additionalProperties": false
}",
"type": "text",
},
],
}
`;
exports[`componentSchemasTool, callback should parse parameters, with lower case componentName 1`] = `
{
"content": [
{
"text": "{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"title": "Button Props",
"description": "Props for the Button component",
"properties": {
"variant": {
"type": "string",
"enum": [
"primary",
"secondary"
]
},
"size": {
"type": "string",
"enum": [
"sm",
"md",
"lg"
]
},
"children": {
"type": "string",
"description": "Content rendered inside the button"
}
},
"required": [
"children"
],
"additionalProperties": false
}",
"type": "text",
},
],
}
`;
exports[`componentSchemasTool, callback should parse parameters, with trimmed componentName 1`] = `
{
"content": [
{
"text": "{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"title": "Button Props",
"description": "Props for the Button component",
"properties": {
"variant": {
"type": "string",
"enum": [
"primary",
"secondary"
]
},
"size": {
"type": "string",
"enum": [
"sm",
"md",
"lg"
]
},
"children": {
"type": "string",
"description": "Content rendered inside the button"
}
},
"required": [
"children"
],
"additionalProperties": false
}",
"type": "text",
},
],
}
`;
exports[`componentSchemasTool, callback should parse parameters, with upper case componentName 1`] = `
{
"content": [
{
"text": "{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"title": "Button Props",
"description": "Props for the Button component",
"properties": {
"variant": {
"type": "string",
"enum": [
"primary",
"secondary"
]
},
"size": {
"type": "string",
"enum": [
"sm",
"md",
"lg"
]
},
"children": {
"type": "string",
"description": "Content rendered inside the button"
}
},
"required": [
"children"
],
"additionalProperties": false
}",
"type": "text",
},
],
}
`;