{
  "schema_version": "1.0",
  "id": "discover-javascript-tests",
  "title": "Discover JavaScript and TypeScript test surfaces",
  "intent": "Locate common runner configuration and JavaScript or TypeScript test files without executing project code.",
  "prerequisites": [
    "find is installed in a trusted system path",
    "The workspace is readable; an empty result means no matching test surface was found"
  ],
  "permissions": {"mode": "inspect", "network": false, "writes": false},
  "risk": "low",
  "limits": {"timeout_seconds": 10, "max_output_bytes": 131072},
  "steps": [
    {
      "name": "Locate Jest configuration",
      "command": "find . -maxdepth 5 -type f -name jest.config.*",
      "expected_status": "succeeded"
    },
    {
      "name": "Locate Vitest configuration",
      "command": "find . -maxdepth 5 -type f -name vitest.config.*",
      "expected_status": "succeeded"
    },
    {
      "name": "Locate Playwright configuration",
      "command": "find . -maxdepth 5 -type f -name playwright.config.*",
      "expected_status": "succeeded"
    },
    {
      "name": "Locate Cypress configuration",
      "command": "find . -maxdepth 5 -type f -name cypress.config.*",
      "expected_status": "succeeded"
    },
    {
      "name": "Locate test files",
      "command": "find . -maxdepth 5 -type f -name *.test.?s*",
      "expected_status": "succeeded"
    },
    {
      "name": "Locate spec files",
      "command": "find . -maxdepth 5 -type f -name *.spec.?s*",
      "expected_status": "succeeded"
    }
  ],
  "expected_output": "Signed receipts list matching runner configuration and test files, or empty output when no matching surface exists.",
  "sample_receipt": {
    "sharing_redacted": true,
    "status": "succeeded",
    "risk": "low",
    "command": "[REDACTED FOR SHARING]",
    "cwd": "[REDACTED FOR SHARING]",
    "stdout": "[REDACTED FOR SHARING]",
    "stderr": "[REDACTED FOR SHARING]"
  }
}
