{
  "$schema": "http://json-schema.org/schema",
  "id": "component-cypress-spec",
  "type": "object",
  "properties": {
    "project": {
      "type": "string",
      "description": "The project name for which to generate tests",
      "examples": ["shared-ui-component"],
      "$default": {
        "$source": "projectName",
        "index": 0
      },
      "x-prompt": "What's name of the project for which to generate tests?"
    },
    "componentPath": {
      "type": "string",
      "description": "Relative path to the component file from the library root?",
      "examples": ["lib/components"],
      "x-prompt": "What's path of the component relative to the project's lib root for which to generate a test?"
    },
    "js": {
      "type": "boolean",
      "description": "Generate JavaScript files rather than TypeScript files",
      "default": false
    }
  },
  "required": ["project", "componentPath"]
}
