runTest
Execute frontend tests using Jest or Cypress frameworks for unit, component, and end-to-end testing. Input source and test code, specify framework and test type, and configure parameters to validate functionality effectively.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | ||
| framework | Yes | ||
| sourceCode | Yes | ||
| testCode | Yes | ||
| type | Yes |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"config": {
"additionalProperties": {},
"type": "object"
},
"framework": {
"enum": [
"jest",
"cypress"
],
"type": "string"
},
"sourceCode": {
"type": "string"
},
"testCode": {
"type": "string"
},
"type": {
"enum": [
"unit",
"component",
"e2e"
],
"type": "string"
}
},
"required": [
"sourceCode",
"testCode",
"framework",
"type"
],
"type": "object"
}